diff --git a/homeassistant/components/lyric/__init__.py b/homeassistant/components/lyric/__init__.py index a407afaa207..3e83fedb72a 100644 --- a/homeassistant/components/lyric/__init__.py +++ b/homeassistant/components/lyric/__init__.py @@ -118,6 +118,8 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: class LyricEntity(CoordinatorEntity[DataUpdateCoordinator[Lyric]]): """Defines a base Honeywell Lyric entity.""" + _attr_has_entity_name = True + def __init__( self, coordinator: DataUpdateCoordinator[Lyric], diff --git a/homeassistant/components/lyric/climate.py b/homeassistant/components/lyric/climate.py index df90ebcd6cf..ef662d061e8 100644 --- a/homeassistant/components/lyric/climate.py +++ b/homeassistant/components/lyric/climate.py @@ -138,6 +138,8 @@ class LyricClimate(LyricDeviceEntity, ClimateEntity): coordinator: DataUpdateCoordinator[Lyric] entity_description: ClimateEntityDescription + _attr_name = None + def __init__( self, coordinator: DataUpdateCoordinator[Lyric], diff --git a/homeassistant/components/lyric/sensor.py b/homeassistant/components/lyric/sensor.py index 1e15ff58b18..d628a108183 100644 --- a/homeassistant/components/lyric/sensor.py +++ b/homeassistant/components/lyric/sensor.py @@ -86,7 +86,7 @@ async def async_setup_entry( coordinator, LyricSensorEntityDescription( key=f"{device.macID}_indoor_temperature", - name="Indoor Temperature", + translation_key="indoor_temperature", device_class=SensorDeviceClass.TEMPERATURE, state_class=SensorStateClass.MEASUREMENT, native_unit_of_measurement=native_temperature_unit, @@ -102,7 +102,7 @@ async def async_setup_entry( coordinator, LyricSensorEntityDescription( key=f"{device.macID}_indoor_humidity", - name="Indoor Humidity", + translation_key="indoor_humidity", device_class=SensorDeviceClass.HUMIDITY, state_class=SensorStateClass.MEASUREMENT, native_unit_of_measurement=PERCENTAGE, @@ -123,7 +123,7 @@ async def async_setup_entry( coordinator, LyricSensorEntityDescription( key=f"{device.macID}_outdoor_temperature", - name="Outdoor Temperature", + translation_key="outdoor_temperature", device_class=SensorDeviceClass.TEMPERATURE, state_class=SensorStateClass.MEASUREMENT, native_unit_of_measurement=native_temperature_unit, @@ -139,7 +139,7 @@ async def async_setup_entry( coordinator, LyricSensorEntityDescription( key=f"{device.macID}_outdoor_humidity", - name="Outdoor Humidity", + translation_key="outdoor_humidity", device_class=SensorDeviceClass.HUMIDITY, state_class=SensorStateClass.MEASUREMENT, native_unit_of_measurement=PERCENTAGE, @@ -156,7 +156,7 @@ async def async_setup_entry( coordinator, LyricSensorEntityDescription( key=f"{device.macID}_next_period_time", - name="Next Period Time", + translation_key="next_period_time", device_class=SensorDeviceClass.TIMESTAMP, value=lambda device: get_datetime_from_future_time( device.changeableValues.nextPeriodTime @@ -172,7 +172,7 @@ async def async_setup_entry( coordinator, LyricSensorEntityDescription( key=f"{device.macID}_setpoint_status", - name="Setpoint Status", + translation_key="setpoint_status", icon="mdi:thermostat", value=lambda device: get_setpoint_status( device.changeableValues.thermostatSetpointStatus, diff --git a/homeassistant/components/lyric/strings.json b/homeassistant/components/lyric/strings.json index 2271d4201f6..219530a9747 100644 --- a/homeassistant/components/lyric/strings.json +++ b/homeassistant/components/lyric/strings.json @@ -18,6 +18,28 @@ "default": "[%key:common::config_flow::create_entry::authenticated%]" } }, + "entity": { + "sensor": { + "indoor_temperature": { + "name": "Indoor temperature" + }, + "indoor_humidity": { + "name": "Indoor humidity" + }, + "outdoor_temperature": { + "name": "Outdoor temperature" + }, + "outdoor_humidity": { + "name": "Outdoor humidity" + }, + "next_period_time": { + "name": "Next period time" + }, + "setpoint_status": { + "name": "Setpoint status" + } + } + }, "services": { "set_hold_time": { "name": "Set Hold Time",