mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 00:07:10 +00:00
Icon translation for imap mail count sensor (#108576)
This commit is contained in:
parent
a7c94dda73
commit
c3da51db4e
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",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
suggested_display_precision=0,
|
||||
translation_key="imap_mail_count",
|
||||
name=None,
|
||||
)
|
||||
|
||||
|
||||
@ -40,9 +42,7 @@ class ImapSensor(
|
||||
):
|
||||
"""Representation of an IMAP sensor."""
|
||||
|
||||
_attr_icon = "mdi:email-outline"
|
||||
_attr_has_entity_name = True
|
||||
_attr_name = None
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
Loading…
x
Reference in New Issue
Block a user