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

@ -382,7 +382,7 @@ class EntityComponent(Generic[_EntityT]):
if scan_interval is None:
scan_interval = self.scan_interval
return EntityPlatform(
entity_platform = EntityPlatform(
hass=self.hass,
logger=self.logger,
domain=self.domain,
@ -391,6 +391,8 @@ class EntityComponent(Generic[_EntityT]):
scan_interval=scan_interval,
entity_namespace=entity_namespace,
)
entity_platform.async_prepare()
return entity_platform
async def _async_shutdown(self, event: Event) -> None:
"""Call when Home Assistant is stopping."""