mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Improve wake_word generic typing (#98279)
This commit is contained in:
parent
78ac36e3fe
commit
58194a5eb4
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user