Fix bugs
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user