Icon translation for imap mail count sensor (#108576)
This commit is contained in:
parent
a7c94dda73
commit
c3da51db4e
2 changed files with 14 additions and 2 deletions
12
homeassistant/components/imap/icons.json
Normal file
12
homeassistant/components/imap/icons.json
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"imap_mail_count": {
|
||||||
|
"default": "mdi:email-alert-outline",
|
||||||
|
"state": {
|
||||||
|
"0": "mdi:email-check-outline"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -20,6 +20,8 @@ IMAP_MAIL_COUNT_DESCRIPTION = SensorEntityDescription(
|
||||||
key="imap_mail_count",
|
key="imap_mail_count",
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
suggested_display_precision=0,
|
suggested_display_precision=0,
|
||||||
|
translation_key="imap_mail_count",
|
||||||
|
name=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,9 +42,7 @@ class ImapSensor(
|
||||||
):
|
):
|
||||||
"""Representation of an IMAP sensor."""
|
"""Representation of an IMAP sensor."""
|
||||||
|
|
||||||
_attr_icon = "mdi:email-outline"
|
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
_attr_name = None
|
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue