Update
This commit is contained in:
@@ -31,6 +31,7 @@ public sealed class LightControlService : ILightControlService
|
||||
if (!string.Equals(sunState, LightMonitorConsts.SunBelowHorizon, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
_logger.LogDebug("Sun is not below horizon (state={SunState}), skipping light turn on", sunState);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -39,6 +40,7 @@ public sealed class LightControlService : ILightControlService
|
||||
if (string.Equals(lightState, LightMonitorConsts.LightOnState, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
_logger.LogDebug("Light {EntityId} is already on, skipping", _options.LightEntityId);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user