mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Add icon translations to Local IP (#111900)
This commit is contained in:
parent
e43c62af1e
commit
65e004dc99
9
homeassistant/components/local_ip/icons.json
Normal file
9
homeassistant/components/local_ip/icons.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"local_ip": {
|
||||
"default": "mdi:ip"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user