diff --git a/src/NuttyTree.NetDaemon.Application/Announcements/AnnouncementsService.cs b/src/NuttyTree.NetDaemon.Application/Announcements/AnnouncementsService.cs index 4500461..18b4b95 100644 --- a/src/NuttyTree.NetDaemon.Application/Announcements/AnnouncementsService.cs +++ b/src/NuttyTree.NetDaemon.Application/Announcements/AnnouncementsService.cs @@ -100,7 +100,6 @@ public void DisableAnnouncements(int minutes) nextAnnouncementAvailable.TrySetResult(); }); logger.LogInformation("Announcements disabled until {DisabledUntil}", disabledUntil); - haContext?.SetEntityState("binary_sensor.announcments_enabled", "off", new { until = $"{(minutes == int.MaxValue ? "Indefinitely" : disabledUntil)}" }); } } @@ -110,7 +109,6 @@ public void EnableAnnouncements() disabledUntil = null; nextAnnouncementAvailable.TrySetResult(); logger.LogInformation("Announcements enabled"); - haContext?.SetEntityState("binary_sensor.announcments_enabled", "on", new { }); } public void SendAnnouncement( diff --git a/src/NuttyTree.NetDaemon.Application/ElectronicsTime/ElectronicsTimeApp.cs b/src/NuttyTree.NetDaemon.Application/ElectronicsTime/ElectronicsTimeApp.cs index 6f87819..59f4e4c 100644 --- a/src/NuttyTree.NetDaemon.Application/ElectronicsTime/ElectronicsTimeApp.cs +++ b/src/NuttyTree.NetDaemon.Application/ElectronicsTime/ElectronicsTimeApp.cs @@ -116,11 +116,18 @@ private async Task HandleToDoListChangeAsync(StateChange - - - - - - + + + + + + diff --git a/src/NuttyTree.NetDaemon.Infrastructure/NuttyTree.NetDaemon.Infrastructure.csproj b/src/NuttyTree.NetDaemon.Infrastructure/NuttyTree.NetDaemon.Infrastructure.csproj index 6aaa9cd..1c64b96 100644 --- a/src/NuttyTree.NetDaemon.Infrastructure/NuttyTree.NetDaemon.Infrastructure.csproj +++ b/src/NuttyTree.NetDaemon.Infrastructure/NuttyTree.NetDaemon.Infrastructure.csproj @@ -8,7 +8,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive