mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 07:47:08 +00:00
Fix ESPHome and VoIP Assist satellite entity names (#126229)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
185d00c86c
commit
9db5b481be
@ -59,6 +59,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"entity": {
|
"entity": {
|
||||||
|
"assist_satellite": {
|
||||||
|
"assist_satellite": {
|
||||||
|
"name": "[%key:component::assist_satellite::entity_component::_::name%]"
|
||||||
|
}
|
||||||
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
"assist_in_progress": {
|
"assist_in_progress": {
|
||||||
"name": "[%key:component::assist_pipeline::entity::binary_sensor::assist_in_progress::name%]"
|
"name": "[%key:component::assist_pipeline::entity::binary_sensor::assist_in_progress::name%]"
|
||||||
|
@ -21,6 +21,7 @@ from homeassistant.components.assist_satellite import (
|
|||||||
AssistSatelliteEntityDescription,
|
AssistSatelliteEntityDescription,
|
||||||
)
|
)
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
from homeassistant.const import EntityCategory
|
||||||
from homeassistant.core import Context, HomeAssistant, callback
|
from homeassistant.core import Context, HomeAssistant, callback
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
||||||
@ -79,7 +80,7 @@ class VoipAssistSatellite(VoIPEntity, AssistSatelliteEntity, RtpDatagramProtocol
|
|||||||
|
|
||||||
entity_description = AssistSatelliteEntityDescription(key="assist_satellite")
|
entity_description = AssistSatelliteEntityDescription(key="assist_satellite")
|
||||||
_attr_translation_key = "assist_satellite"
|
_attr_translation_key = "assist_satellite"
|
||||||
_attr_has_entity_name = True
|
_attr_entity_category = EntityCategory.CONFIG
|
||||||
_attr_name = None
|
_attr_name = None
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
|
@ -10,16 +10,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"entity": {
|
"entity": {
|
||||||
"assist_satellite": {
|
|
||||||
"assist_satellite": {
|
|
||||||
"state": {
|
|
||||||
"listening_wake_word": "[%key:component::assist_satellite::entity_component::_::state::listening_wake_word%]",
|
|
||||||
"listening_command": "[%key:component::assist_satellite::entity_component::_::state::listening_command%]",
|
|
||||||
"responding": "[%key:component::assist_satellite::entity_component::_::state::responding%]",
|
|
||||||
"processing": "[%key:component::assist_satellite::entity_component::_::state::processing%]"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
"call_in_progress": {
|
"call_in_progress": {
|
||||||
"name": "Call in progress"
|
"name": "Call in progress"
|
||||||
|
@ -61,6 +61,7 @@ def get_satellite_entity(
|
|||||||
)
|
)
|
||||||
if satellite_entity_id is None:
|
if satellite_entity_id is None:
|
||||||
return None
|
return None
|
||||||
|
assert satellite_entity_id.endswith("_assist_satellite")
|
||||||
|
|
||||||
component: EntityComponent[AssistSatelliteEntity] = hass.data[
|
component: EntityComponent[AssistSatelliteEntity] = hass.data[
|
||||||
assist_satellite.DOMAIN
|
assist_satellite.DOMAIN
|
||||||
|
@ -57,6 +57,7 @@ def async_get_satellite_entity(
|
|||||||
)
|
)
|
||||||
if satellite_entity_id is None:
|
if satellite_entity_id is None:
|
||||||
return None
|
return None
|
||||||
|
assert not satellite_entity_id.endswith("none")
|
||||||
|
|
||||||
component: EntityComponent[AssistSatelliteEntity] = hass.data[
|
component: EntityComponent[AssistSatelliteEntity] = hass.data[
|
||||||
assist_satellite.DOMAIN
|
assist_satellite.DOMAIN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user