1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-27 12:14:35 +01:00

Python 3.10 support cleanups (#98640)

This commit is contained in:
Ville Skyttä
2023-08-21 20:14:07 +03:00
committed by GitHub
parent faf0f5f19b
commit 2399cd283a
31 changed files with 75 additions and 103 deletions

View File

@@ -2,7 +2,7 @@
Call init before using it in your tests to ensure clean test data.
"""
from datetime import datetime, timezone
from datetime import UTC, datetime
from homeassistant.components.datetime import DateTimeEntity
@@ -37,7 +37,7 @@ def init(empty=False):
MockDateTimeEntity(
name="test",
unique_id=UNIQUE_DATETIME,
native_value=datetime(2020, 1, 1, 1, 2, 3, tzinfo=timezone.utc),
native_value=datetime(2020, 1, 1, 1, 2, 3, tzinfo=UTC),
),
]
)