Add color_mode to demo light (#49694)

* Update demo light with color mode support

* Add rgbw and rgbww color properties

* Update demo light

* Tweak

* Remove unneeded _clear_colors
This commit is contained in:
Erik Montnemery 2021-04-29 10:45:17 +02:00 committed by GitHub
parent 25d257b631
commit bf57c77d5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 118 additions and 51 deletions

View file

@ -91,6 +91,8 @@ ENTITY_IDS_BY_NUMBER = {
"22": "scene.light_on",
"23": "scene.light_off",
"24": "media_player.kitchen",
"25": "light.office_rgbw_lights",
"26": "light.living_room_rgbww_lights",
}
ENTITY_NUMBERS_BY_ID = {v: k for k, v in ENTITY_IDS_BY_NUMBER.items()}