Ensure that calendar output values are json types (#95797)

This commit is contained in:
Allen Porter 2023-07-03 12:05:02 -07:00 committed by GitHub
parent 0f725a24bd
commit 2f73be0e50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 14 deletions

View file

@ -9,3 +9,11 @@ from homeassistant.setup import async_setup_component
async def setup_homeassistant(hass: HomeAssistant):
"""Set up the homeassistant integration."""
await async_setup_component(hass, "homeassistant", {})
@pytest.fixture
def set_time_zone(hass: HomeAssistant) -> None:
"""Set the time zone for the tests."""
# Set our timezone to CST/Regina so we can check calculations
# This keeps UTC-6 all year round
hass.config.set_time_zone("America/Regina")