Add icon translations to Version (#112343)
This commit is contained in:
parent
23ffcaf187
commit
0b6307fa53
2 changed files with 10 additions and 2 deletions
9
homeassistant/components/version/icons.json
Normal file
9
homeassistant/components/version/icons.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"version": {
|
||||
"default": "mdi:package-up"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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."""
|
||||
|
|
Loading…
Add table
Reference in a new issue