Add icon translations to Yeelight (#112363)
* Add icon translations to Yeelight * Add icon translations to Yeelightpull/111883/head
parent
020b656f51
commit
033dd35655
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue