diff --git a/homeassistant/components/fritzbox_callmonitor/const.py b/homeassistant/components/fritzbox_callmonitor/const.py index 75050374e52..a13a86574df 100644 --- a/homeassistant/components/fritzbox_callmonitor/const.py +++ b/homeassistant/components/fritzbox_callmonitor/const.py @@ -14,8 +14,6 @@ class FritzState(StrEnum): DISCONNECT = "DISCONNECT" -ICON_PHONE: Final = "mdi:phone" - ATTR_PREFIXES = "prefixes" FRITZ_ATTR_NAME = "name" diff --git a/homeassistant/components/fritzbox_callmonitor/icons.json b/homeassistant/components/fritzbox_callmonitor/icons.json new file mode 100644 index 00000000000..836d3159681 --- /dev/null +++ b/homeassistant/components/fritzbox_callmonitor/icons.json @@ -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" + } + } + } + } +} diff --git a/homeassistant/components/fritzbox_callmonitor/sensor.py b/homeassistant/components/fritzbox_callmonitor/sensor.py index 03ac98419c1..036c9605d0a 100644 --- a/homeassistant/components/fritzbox_callmonitor/sensor.py +++ b/homeassistant/components/fritzbox_callmonitor/sensor.py @@ -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