diff --git a/homeassistant/components/yale_smart_alarm/binary_sensor.py b/homeassistant/components/yale_smart_alarm/binary_sensor.py index 49cd10f4c64..2aad449a3f7 100644 --- a/homeassistant/components/yale_smart_alarm/binary_sensor.py +++ b/homeassistant/components/yale_smart_alarm/binary_sensor.py @@ -20,25 +20,25 @@ SENSOR_TYPES = ( key="acfail", device_class=BinarySensorDeviceClass.PROBLEM, entity_category=EntityCategory.DIAGNOSTIC, - name="Power loss", + translation_key="power_loss", ), BinarySensorEntityDescription( key="battery", device_class=BinarySensorDeviceClass.PROBLEM, entity_category=EntityCategory.DIAGNOSTIC, - name="Battery", + translation_key="battery", ), BinarySensorEntityDescription( key="tamper", device_class=BinarySensorDeviceClass.PROBLEM, entity_category=EntityCategory.DIAGNOSTIC, - name="Tamper", + translation_key="tamper", ), BinarySensorEntityDescription( key="jam", device_class=BinarySensorDeviceClass.PROBLEM, entity_category=EntityCategory.DIAGNOSTIC, - name="Jam", + translation_key="jam", ), ) diff --git a/homeassistant/components/yale_smart_alarm/button.py b/homeassistant/components/yale_smart_alarm/button.py index d8601ec85f9..901cd1863ee 100644 --- a/homeassistant/components/yale_smart_alarm/button.py +++ b/homeassistant/components/yale_smart_alarm/button.py @@ -15,7 +15,7 @@ from .entity import YaleAlarmEntity BUTTON_TYPES = ( ButtonEntityDescription( key="panic", - name="Panic button", + translation_key="panic", icon="mdi:alarm-light", ), ) diff --git a/homeassistant/components/yale_smart_alarm/strings.json b/homeassistant/components/yale_smart_alarm/strings.json index 6a6443c1b9b..5928013e098 100644 --- a/homeassistant/components/yale_smart_alarm/strings.json +++ b/homeassistant/components/yale_smart_alarm/strings.json @@ -39,5 +39,26 @@ "error": { "code_format_mismatch": "The code does not match the required number of digits" } + }, + "entity": { + "binary_sensor": { + "power_loss": { + "name": "Power loss" + }, + "battery": { + "name": "Battery" + }, + "tamper": { + "name": "Tamper" + }, + "jam": { + "name": "Jam" + } + }, + "button": { + "panic": { + "name": "Panic button" + } + } } }