Add icon translations to DNS IP (#111369)

This commit is contained in:
Joost Lekkerkerker 2024-02-25 13:00:45 +01:00 committed by GitHub
parent 8d3982f3dd
commit a94f8bd14d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,9 @@
{
"entity": {
"sensor": {
"dnsip": {
"default": "mdi:web"
}
}
}
}

View File

@ -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,