mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Use device class icon in Crownstone (#111361)
This commit is contained in:
committed by
GitHub
parent
5fa4be02f0
commit
ba961e12a4
9
homeassistant/components/crownstone/icons.json
Normal file
9
homeassistant/components/crownstone/icons.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"light": {
|
||||||
|
"german_power_outlet": {
|
||||||
|
"default": "mdi:power-socket-de"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -70,8 +70,8 @@ class CrownstoneEntity(CrownstoneBaseEntity, LightEntity):
|
|||||||
Light platform is used to support dimming.
|
Light platform is used to support dimming.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_attr_icon = "mdi:power-socket-de"
|
|
||||||
_attr_name = None
|
_attr_name = None
|
||||||
|
_attr_translation_key = "german_power_outlet"
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, crownstone_data: Crownstone, usb: CrownstoneUart | None = None
|
self, crownstone_data: Crownstone, usb: CrownstoneUart | None = None
|
||||||
|
Reference in New Issue
Block a user