Add icon translations to Yeelight (#112363)

* Add icon translations to Yeelight

* Add icon translations to Yeelight
pull/111883/head
Joost Lekkerkerker 2024-03-09 20:48:21 +01:00 committed by GitHub
parent 020b656f51
commit 033dd35655
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,19 @@
{
"entity": {
"light": {
"nightlight": {
"default": "mdi:weather-night"
}
}
},
"services": {
"set_mode": "mdi:cog",
"set_color_scene": "mdi:palette",
"set_hsv_scene": "mdi:palette",
"set_color_temp_scene": "mdi:palette",
"set_color_flow_scene": "mdi:palette",
"set_auto_delay_off_scene": "mdi:timer",
"start_flow": "mdi:play",
"set_music_mode": "mdi:music"
}
}

View File

@ -1002,7 +1002,6 @@ class YeelightNightLightMode(YeelightBaseLight):
"""Representation of a Yeelight when in nightlight mode."""
_attr_color_mode = ColorMode.BRIGHTNESS
_attr_icon = "mdi:weather-night"
_attr_supported_color_modes = {ColorMode.BRIGHTNESS}
_attr_translation_key = "nightlight"

View File

@ -857,7 +857,6 @@ async def test_device_types(
state = hass.states.get(f"{entity_id}_nightlight")
assert state.state == "on"
nightlight_entity_properties["friendly_name"] = f"{name} Nightlight"
nightlight_entity_properties["icon"] = "mdi:weather-night"
nightlight_entity_properties["flowing"] = False
nightlight_entity_properties["night_light"] = True
nightlight_entity_properties["music_mode"] = False