Improve wake_word generic typing (#98279)

This commit is contained in:
Marc Mueller
2023-08-11 23:08:52 +02:00
committed by GitHub
parent 78ac36e3fe
commit 58194a5eb4

View File

@@ -43,7 +43,7 @@ def async_get_wake_word_detection_entity(
hass: HomeAssistant, entity_id: str
) -> WakeWordDetectionEntity | None:
"""Return wake word entity."""
component: EntityComponent = hass.data[DOMAIN]
component: EntityComponent[WakeWordDetectionEntity] = hass.data[DOMAIN]
return component.get_entity(entity_id)