mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Allow update of camera modules after setting values (#1450)
This commit is contained in:
@@ -9,6 +9,7 @@ from zoneinfo import ZoneInfo, ZoneInfoNotFoundError
|
||||
from ...cachedzoneinfo import CachedZoneInfo
|
||||
from ...feature import Feature
|
||||
from ...interfaces import Time as TimeInterface
|
||||
from ...smart.smartmodule import allow_update_after
|
||||
from ..smartcammodule import SmartCamModule
|
||||
|
||||
|
||||
@@ -73,6 +74,7 @@ class Time(SmartCamModule, TimeInterface):
|
||||
"""Return device's current datetime."""
|
||||
return self._time
|
||||
|
||||
@allow_update_after
|
||||
async def set_time(self, dt: datetime) -> dict:
|
||||
"""Set device time."""
|
||||
if not dt.tzinfo:
|
||||
|
Reference in New Issue
Block a user