Add config flow for Time & Date (#104183)

Co-authored-by: Erik <erik@montnemery.com>
This commit is contained in:
G Johansson 2024-01-23 12:18:31 +01:00 committed by GitHub
parent eaa32146a6
commit 65581e94ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 573 additions and 88 deletions

View file

@ -0,0 +1,18 @@
"""The tests for the Time & Date component."""
from homeassistant.core import HomeAssistant
from . import load_int
async def test_setup_and_remove_config_entry(hass: HomeAssistant) -> None:
"""Test setting up and removing a config entry."""
entry = await load_int(hass)
state = hass.states.get("sensor.time")
assert state is not None
assert await hass.config_entries.async_remove(entry.entry_id)
await hass.async_block_till_done()
assert hass.states.get("sensor.time") is None