mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add icon translations to Nanoleaf (#111946)
This commit is contained in:
parent
28ab4abe00
commit
4ca8a02771
9
homeassistant/components/nanoleaf/icons.json
Normal file
9
homeassistant/components/nanoleaf/icons.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"light": {
|
||||||
|
"light": {
|
||||||
|
"default": "mdi:triangle-outline"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -47,7 +47,7 @@ class NanoleafLight(NanoleafEntity, LightEntity):
|
|||||||
_attr_supported_color_modes = {ColorMode.COLOR_TEMP, ColorMode.HS}
|
_attr_supported_color_modes = {ColorMode.COLOR_TEMP, ColorMode.HS}
|
||||||
_attr_supported_features = LightEntityFeature.EFFECT | LightEntityFeature.TRANSITION
|
_attr_supported_features = LightEntityFeature.EFFECT | LightEntityFeature.TRANSITION
|
||||||
_attr_name = None
|
_attr_name = None
|
||||||
_attr_icon = "mdi:triangle-outline"
|
_attr_translation_key = "light"
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, nanoleaf: Nanoleaf, coordinator: DataUpdateCoordinator[None]
|
self, nanoleaf: Nanoleaf, coordinator: DataUpdateCoordinator[None]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user