Skip to content
Snippets Groups Projects
Unverified Commit c3da51db authored by Jan Bouwhuis's avatar Jan Bouwhuis Committed by GitHub
Browse files

Icon translation for imap mail count sensor (#108576)

parent a7c94dda
No related branches found
No related tags found
No related merge requests found
{
"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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment