We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0547711 commit 1d56820Copy full SHA for 1d56820
switchbot/devices/device.py
@@ -96,7 +96,6 @@ async def _async_update_after_operation_wrap(
96
) -> None:
97
ret = await func(self, *args, **kwargs)
98
await self.update()
99
- self._fire_callbacks()
100
return ret
101
102
return cast(WrapFuncType, _async_update_after_operation_wrap)
@@ -520,6 +519,7 @@ async def update(self, interface: int | None = None) -> None:
520
519
if info := await self.get_basic_info():
521
self._last_full_update = time.monotonic()
522
self._update_parsed_data(info)
+ self._fire_callbacks()
523
524
async def get_basic_info(self) -> dict[str, Any] | None:
525
"""Get device basic settings."""
0 commit comments