Skip to content

Commit

Permalink
Add icon translations to AVM FRITZ!Box Call Monitor (#108417)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
jrieger and frenck authored Jan 20, 2024
1 parent b3017c0 commit 8dacb4f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 0 additions & 2 deletions homeassistant/components/fritzbox_callmonitor/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class FritzState(StrEnum):
DISCONNECT = "DISCONNECT"


ICON_PHONE: Final = "mdi:phone"

ATTR_PREFIXES = "prefixes"

FRITZ_ATTR_NAME = "name"
Expand Down
14 changes: 14 additions & 0 deletions homeassistant/components/fritzbox_callmonitor/icons.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
2 changes: 0 additions & 2 deletions homeassistant/components/fritzbox_callmonitor/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
CONF_PREFIXES,
DOMAIN,
FRITZBOX_PHONEBOOK,
ICON_PHONE,
MANUFACTURER,
SERIAL_NUMBER,
FritzState,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8dacb4f

Please sign in to comment.