Add icon translations to Nanoleaf (#111946)

This commit is contained in:
Joost Lekkerkerker 2024-03-01 20:18:59 +01:00 committed by GitHub
parent 28ab4abe00
commit 4ca8a02771
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,9 @@
{
"entity": {
"light": {
"light": {
"default": "mdi:triangle-outline"
}
}
}
}

View File

@ -47,7 +47,7 @@ class NanoleafLight(NanoleafEntity, LightEntity):
_attr_supported_color_modes = {ColorMode.COLOR_TEMP, ColorMode.HS}
_attr_supported_features = LightEntityFeature.EFFECT | LightEntityFeature.TRANSITION
_attr_name = None
_attr_icon = "mdi:triangle-outline"
_attr_translation_key = "light"
def __init__(
self, nanoleaf: Nanoleaf, coordinator: DataUpdateCoordinator[None]