mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Make iot time timezone aware (#1147)
Also makes on_since for iot devices use device time. Changes the return value for device.timezone to be tzinfo instead of a dict.
This commit is contained in:
@@ -28,7 +28,7 @@ class LightEffect(SmartModule, SmartLightEffect):
|
||||
_effect_list: list[str]
|
||||
_scenes_names_to_id: dict[str, str]
|
||||
|
||||
def _post_update_hook(self) -> None:
|
||||
async def _post_update_hook(self) -> None:
|
||||
"""Update internal effect state."""
|
||||
# Copy the effects so scene name updates do not update the underlying dict.
|
||||
effects = copy.deepcopy(
|
||||
|
Reference in New Issue
Block a user