Add pylint plugin to enforce util.dt.utcnow (#172354)

This commit is contained in:
Martin Hjelmare
2026-06-01 12:17:29 +02:00
committed by GitHub
parent 7a32cdc250
commit fed946760d
26 changed files with 389 additions and 15 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ datetime.HAFakeDatetime = HAFakeDatetime
def _utcnow() -> datetime.datetime:
"""Make utcnow patchable by freezegun."""
return datetime.datetime.now(datetime.UTC)
return datetime.datetime.now(datetime.UTC) # pylint: disable=home-assistant-enforce-utcnow
def _monotonic() -> float: