Add icon translations to AVM FRITZ!Box Call Monitor (#108417)

* Add icon translations to AVM FRITZ!Box Call Monitor

* Update homeassistant/components/fritzbox_callmonitor/icons.json

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/fritzbox_callmonitor/icons.json

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

---------

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
pull/108472/head
Jan Rieger 2024-01-20 11:16:56 +01:00 committed by GitHub
parent b3017c0f4e
commit 8dacb4f9ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 4 deletions

View File

@ -14,8 +14,6 @@ class FritzState(StrEnum):
DISCONNECT = "DISCONNECT"
ICON_PHONE: Final = "mdi:phone"
ATTR_PREFIXES = "prefixes"
FRITZ_ATTR_NAME = "name"

View File

@ -0,0 +1,14 @@
{
"entity": {
"sensor": {
"fritzbox_callmonitor": {
"default": "mdi:phone",
"state": {
"ringing": "mdi:phone-incoming",
"dialing": "mdi:phone-outgoing",
"talking": "mdi:phone-in-talk"
}
}
}
}
}

View File

@ -26,7 +26,6 @@ from .const import (
CONF_PREFIXES,
DOMAIN,
FRITZBOX_PHONEBOOK,
ICON_PHONE,
MANUFACTURER,
SERIAL_NUMBER,
FritzState,
@ -79,7 +78,6 @@ async def async_setup_entry(
class FritzBoxCallSensor(SensorEntity):
"""Implementation of a Fritz!Box call monitor."""
_attr_icon = ICON_PHONE
_attr_has_entity_name = True
_attr_translation_key = DOMAIN
_attr_device_class = SensorDeviceClass.ENUM