Move names to strings.json

This commit is contained in:
Cosimo
2024-02-02 09:17:36 +00:00
parent 74c4517a07
commit 363c317e54
3 changed files with 18 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ from .entity import RingEntity
BUTTON_DESCRIPTION = ButtonEntityDescription(
key="open_door",
name="Open door",
translation_key="open_door",
icon="mdi:door-closed-lock",
entity_category=EntityCategory.CONFIG,
)

View File

@@ -215,21 +215,21 @@ SENSOR_TYPES: tuple[RingSensorEntityDescription, ...] = (
),
RingSensorEntityDescription(
key="doorbell_volume",
name="Doorbell Volume",
translation_key="doorbell_volume",
category=["other"],
icon="mdi:bell-ring",
cls=RingSensor,
),
RingSensorEntityDescription(
key="mic_volume",
name="Mic Volume",
translation_key="mic_volume",
category=["other"],
icon="mdi:bell-ring",
cls=RingSensor,
),
RingSensorEntityDescription(
key="voice_volume",
name="Voice Volume",
translation_key="voice_volume",
category=["other"],
icon="mdi:bell-ring",
cls=RingSensor,

View File

@@ -37,6 +37,11 @@
"name": "Ding"
}
},
"button": {
"open_door": {
"name": "Open Door"
}
},
"light": {
"light": {
"name": "[%key:component::light::title%]"
@@ -60,6 +65,15 @@
"volume": {
"name": "Volume"
},
"doorbell_volume": {
"name": "Doorbell Volume"
},
"mic_volume": {
"name": "Mic Volume"
},
"voice_volume": {
"name": "Voice Volume"
},
"wifi_signal_category": {
"name": "Wi-Fi signal category"
},