mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 07:25:52 -05:00
fix Lutron Caseta smart away subscription (#158082)
Co-authored-by: J. Nick Koston <nick+github@koston.org>
This commit is contained in:
co-authored by
J. Nick Koston
parent
0b52c806d4
commit
660a14e78d
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user