mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
Add icon translations to DNS IP (#111369)
This commit is contained in:
parent
8d3982f3dd
commit
a94f8bd14d
9
homeassistant/components/dnsip/icons.json
Normal file
9
homeassistant/components/dnsip/icons.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"dnsip": {
|
||||
"default": "mdi:web"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -52,8 +52,8 @@ async def async_setup_entry(
|
||||
class WanIpSensor(SensorEntity):
|
||||
"""Implementation of a DNS IP sensor."""
|
||||
|
||||
_attr_icon = "mdi:web"
|
||||
_attr_has_entity_name = True
|
||||
_attr_translation_key = "dnsip"
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
Loading…
x
Reference in New Issue
Block a user