fix Lutron Caseta smart away subscription (#158082)

Co-authored-by: J. Nick Koston <nick+github@koston.org>
This commit is contained in:
omrishiv
2025-12-08 20:16:38 +00:00
committed by Franck Nijhof
co-authored by J. Nick Koston
parent 0b52c806d4
commit 660a14e78d
2 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -113,13 +113,13 @@ class MockBridge:
"""Activate smart away."""
self.smart_away_state = "Enabled"
for callback in self._smart_away_subscribers:
callback()
callback(self.smart_away_state)
async def _deactivate(self):
"""Deactivate smart away."""
self.smart_away_state = "Disabled"
for callback in self._smart_away_subscribers:
callback()
callback(self.smart_away_state)
async def connect(self):
"""Connect the mock bridge."""