Add icon translations to Local IP (#111900)

This commit is contained in:
Joost Lekkerkerker
2024-03-01 13:40:58 +01:00
committed by GitHub
parent e43c62af1e
commit 65e004dc99
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
{
"entity": {
"sensor": {
"local_ip": {
"default": "mdi:ip"
}
}
}
}

View File

@@ -24,7 +24,7 @@ class IPSensor(SensorEntity):
"""A simple sensor."""
_attr_unique_id = SENSOR
_attr_icon = "mdi:ip"
_attr_translation_key = "local_ip"
def __init__(self, name: str) -> None:
"""Initialize the sensor."""