mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 10:13:52 -05:00
Add pylint plugin to enforce util.dt.utcnow (#172354)
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user