This commit is contained in:
2026-06-28 14:22:13 +03:00
parent e6bf8258bb
commit 7f280bea7b
10 changed files with 54 additions and 17 deletions
@@ -95,6 +95,9 @@ public class ExhaustFanControlServiceTests
var service = CreateService();
service.Evaluate(ShowerState.Active, DateTimeOffset.UtcNow, _haContextMock.Object);
var fanOnState = new EntityState { State = "on" };
_haContextMock.Setup(x => x.GetState(FanEntityId)).Returns(fanOnState);
service.Reset(_haContextMock.Object);
_haContextMock.Verify(x => x.CallService("switch", "turn_off",