Icon translation for imap mail count sensor (#108576)

This commit is contained in:
Jan Bouwhuis 2024-01-21 14:57:00 +01:00 committed by GitHub
parent a7c94dda73
commit c3da51db4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1,12 @@
{
"entity": {
"sensor": {
"imap_mail_count": {
"default": "mdi:email-alert-outline",
"state": {
"0": "mdi:email-check-outline"
}
}
}
}
}

View file

@ -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,