diff --git a/homeassistant/components/version/icons.json b/homeassistant/components/version/icons.json new file mode 100644 index 00000000000..e957bc07e3d --- /dev/null +++ b/homeassistant/components/version/icons.json @@ -0,0 +1,9 @@ +{ + "entity": { + "sensor": { + "version": { + "default": "mdi:package-up" + } + } + } +} diff --git a/homeassistant/components/version/sensor.py b/homeassistant/components/version/sensor.py index e1e930b50a6..6b0565b8cb3 100644 --- a/homeassistant/components/version/sensor.py +++ b/homeassistant/components/version/sensor.py @@ -32,6 +32,7 @@ async def async_setup_entry( entity_description=SensorEntityDescription( key=str(entry.data[CONF_SOURCE]), name=entity_name, + translation_key="version", ), ) ] @@ -42,8 +43,6 @@ async def async_setup_entry( class VersionSensorEntity(VersionEntity, SensorEntity): """Version sensor entity class.""" - _attr_icon = "mdi:package-up" - @property def native_value(self) -> StateType: """Return the native value of this sensor."""