mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
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>
This commit is contained in:
parent
b3017c0f4e
commit
8dacb4f9ea
@ -14,8 +14,6 @@ class FritzState(StrEnum):
|
|||||||
DISCONNECT = "DISCONNECT"
|
DISCONNECT = "DISCONNECT"
|
||||||
|
|
||||||
|
|
||||||
ICON_PHONE: Final = "mdi:phone"
|
|
||||||
|
|
||||||
ATTR_PREFIXES = "prefixes"
|
ATTR_PREFIXES = "prefixes"
|
||||||
|
|
||||||
FRITZ_ATTR_NAME = "name"
|
FRITZ_ATTR_NAME = "name"
|
||||||
|
14
homeassistant/components/fritzbox_callmonitor/icons.json
Normal file
14
homeassistant/components/fritzbox_callmonitor/icons.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -26,7 +26,6 @@ from .const import (
|
|||||||
CONF_PREFIXES,
|
CONF_PREFIXES,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
FRITZBOX_PHONEBOOK,
|
FRITZBOX_PHONEBOOK,
|
||||||
ICON_PHONE,
|
|
||||||
MANUFACTURER,
|
MANUFACTURER,
|
||||||
SERIAL_NUMBER,
|
SERIAL_NUMBER,
|
||||||
FritzState,
|
FritzState,
|
||||||
@ -79,7 +78,6 @@ async def async_setup_entry(
|
|||||||
class FritzBoxCallSensor(SensorEntity):
|
class FritzBoxCallSensor(SensorEntity):
|
||||||
"""Implementation of a Fritz!Box call monitor."""
|
"""Implementation of a Fritz!Box call monitor."""
|
||||||
|
|
||||||
_attr_icon = ICON_PHONE
|
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
_attr_translation_key = DOMAIN
|
_attr_translation_key = DOMAIN
|
||||||
_attr_device_class = SensorDeviceClass.ENUM
|
_attr_device_class = SensorDeviceClass.ENUM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user