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
parent
b3017c0f4e
commit
8dacb4f9ea
|
@ -14,8 +14,6 @@ class FritzState(StrEnum):
|
|||
DISCONNECT = "DISCONNECT"
|
||||
|
||||
|
||||
ICON_PHONE: Final = "mdi:phone"
|
||||
|
||||
ATTR_PREFIXES = "prefixes"
|
||||
|
||||
FRITZ_ATTR_NAME = "name"
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue