Use device class icon in Crownstone (#111361)

This commit is contained in:
Joost Lekkerkerker
2024-02-25 14:06:16 +01:00
committed by GitHub
parent 5fa4be02f0
commit ba961e12a4
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
{
"entity": {
"light": {
"german_power_outlet": {
"default": "mdi:power-socket-de"
}
}
}
}

View File

@@ -70,8 +70,8 @@ class CrownstoneEntity(CrownstoneBaseEntity, LightEntity):
Light platform is used to support dimming.
"""
_attr_icon = "mdi:power-socket-de"
_attr_name = None
_attr_translation_key = "german_power_outlet"
def __init__(
self, crownstone_data: Crownstone, usb: CrownstoneUart | None = None