mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Make wake word selection part of configuration (#131832)
This commit is contained in:
parent
dc064237ca
commit
474544abd8
@ -10,6 +10,7 @@ from homeassistant.components.assist_pipeline.select import (
|
|||||||
)
|
)
|
||||||
from homeassistant.components.assist_satellite import AssistSatelliteConfiguration
|
from homeassistant.components.assist_satellite import AssistSatelliteConfiguration
|
||||||
from homeassistant.components.select import SelectEntity, SelectEntityDescription
|
from homeassistant.components.select import SelectEntity, SelectEntityDescription
|
||||||
|
from homeassistant.const import EntityCategory
|
||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
from homeassistant.helpers import restore_state
|
from homeassistant.helpers import restore_state
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
@ -100,7 +101,9 @@ class EsphomeAssistSatelliteWakeWordSelect(
|
|||||||
"""Wake word selector for esphome devices."""
|
"""Wake word selector for esphome devices."""
|
||||||
|
|
||||||
entity_description = SelectEntityDescription(
|
entity_description = SelectEntityDescription(
|
||||||
key="wake_word", translation_key="wake_word"
|
key="wake_word",
|
||||||
|
translation_key="wake_word",
|
||||||
|
entity_category=EntityCategory.CONFIG,
|
||||||
)
|
)
|
||||||
_attr_should_poll = False
|
_attr_should_poll = False
|
||||||
_attr_current_option: str | None = None
|
_attr_current_option: str | None = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user