Skip to content

Commit 9db5b48

Browse files
Fix ESPHome and VoIP Assist satellite entity names (#126229)
Co-authored-by: Paulus Schoutsen <[email protected]>
1 parent 185d00c commit 9db5b48

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

homeassistant/components/esphome/strings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@
5959
}
6060
},
6161
"entity": {
62+
"assist_satellite": {
63+
"assist_satellite": {
64+
"name": "[%key:component::assist_satellite::entity_component::_::name%]"
65+
}
66+
},
6267
"binary_sensor": {
6368
"assist_in_progress": {
6469
"name": "[%key:component::assist_pipeline::entity::binary_sensor::assist_in_progress::name%]"

homeassistant/components/voip/assist_satellite.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
AssistSatelliteEntityDescription,
2222
)
2323
from homeassistant.config_entries import ConfigEntry
24+
from homeassistant.const import EntityCategory
2425
from homeassistant.core import Context, HomeAssistant, callback
2526
from homeassistant.helpers.entity_platform import AddEntitiesCallback
2627

@@ -79,7 +80,7 @@ class VoipAssistSatellite(VoIPEntity, AssistSatelliteEntity, RtpDatagramProtocol
7980

8081
entity_description = AssistSatelliteEntityDescription(key="assist_satellite")
8182
_attr_translation_key = "assist_satellite"
82-
_attr_has_entity_name = True
83+
_attr_entity_category = EntityCategory.CONFIG
8384
_attr_name = None
8485

8586
def __init__(

homeassistant/components/voip/strings.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@
1010
}
1111
},
1212
"entity": {
13-
"assist_satellite": {
14-
"assist_satellite": {
15-
"state": {
16-
"listening_wake_word": "[%key:component::assist_satellite::entity_component::_::state::listening_wake_word%]",
17-
"listening_command": "[%key:component::assist_satellite::entity_component::_::state::listening_command%]",
18-
"responding": "[%key:component::assist_satellite::entity_component::_::state::responding%]",
19-
"processing": "[%key:component::assist_satellite::entity_component::_::state::processing%]"
20-
}
21-
}
22-
},
2313
"binary_sensor": {
2414
"call_in_progress": {
2515
"name": "Call in progress"

tests/components/esphome/test_assist_satellite.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def get_satellite_entity(
6161
)
6262
if satellite_entity_id is None:
6363
return None
64+
assert satellite_entity_id.endswith("_assist_satellite")
6465

6566
component: EntityComponent[AssistSatelliteEntity] = hass.data[
6667
assist_satellite.DOMAIN

tests/components/voip/test_voip.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def async_get_satellite_entity(
5757
)
5858
if satellite_entity_id is None:
5959
return None
60+
assert not satellite_entity_id.endswith("none")
6061

6162
component: EntityComponent[AssistSatelliteEntity] = hass.data[
6263
assist_satellite.DOMAIN

0 commit comments

Comments
 (0)