mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Fix vallow test fixtures (#118003)
This commit is contained in:
@@ -20,19 +20,19 @@ def set_tz(request):
|
||||
@pytest.fixture
|
||||
async def utc(hass: HomeAssistant) -> None:
|
||||
"""Set the default TZ to UTC."""
|
||||
hass.config.async_set_time_zone("UTC")
|
||||
await hass.config.async_set_time_zone("UTC")
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
async def helsinki(hass: HomeAssistant) -> None:
|
||||
"""Set the default TZ to Europe/Helsinki."""
|
||||
hass.config.async_set_time_zone("Europe/Helsinki")
|
||||
await hass.config.async_set_time_zone("Europe/Helsinki")
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
async def new_york(hass: HomeAssistant) -> None:
|
||||
"""Set the default TZ to America/New_York."""
|
||||
hass.config.async_set_time_zone("America/New_York")
|
||||
await hass.config.async_set_time_zone("America/New_York")
|
||||
|
||||
|
||||
def _sensor_to_datetime(sensor):
|
||||
|
||||
Reference in New Issue
Block a user