Allow update of camera modules after setting values (#1450)

This commit is contained in:
Steven B.
2025-01-14 15:11:12 +00:00
committed by GitHub
parent d03f535568
commit 68f50aa763
9 changed files with 24 additions and 0 deletions

View File

@@ -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: