RFC: Only use supported light properties (#15484)
* Only use supported light properties * Fix tests
This commit is contained in:
parent
e62e2bb131
commit
e427f9ee38
5 changed files with 43 additions and 34 deletions
|
@ -415,6 +415,12 @@ class TestLightMQTT(unittest.TestCase):
|
|||
'name': 'test',
|
||||
'state_topic': 'test_light_rgb/status',
|
||||
'command_topic': 'test_light_rgb/set',
|
||||
'brightness_command_topic': 'test_light_rgb/brightness/set',
|
||||
'rgb_command_topic': 'test_light_rgb/rgb/set',
|
||||
'color_temp_command_topic': 'test_light_rgb/color_temp/set',
|
||||
'effect_command_topic': 'test_light_rgb/effect/set',
|
||||
'white_value_command_topic': 'test_light_rgb/white_value/set',
|
||||
'xy_command_topic': 'test_light_rgb/xy/set',
|
||||
'brightness_state_topic': 'test_light_rgb/brightness/status',
|
||||
'color_temp_state_topic': 'test_light_rgb/color_temp/status',
|
||||
'effect_state_topic': 'test_light_rgb/effect/status',
|
||||
|
@ -475,6 +481,7 @@ class TestLightMQTT(unittest.TestCase):
|
|||
'effect_command_topic': 'test_light_rgb/effect/set',
|
||||
'white_value_command_topic': 'test_light_rgb/white_value/set',
|
||||
'xy_command_topic': 'test_light_rgb/xy/set',
|
||||
'effect_list': ['colorloop', 'random'],
|
||||
'qos': 2,
|
||||
'payload_on': 'on',
|
||||
'payload_off': 'off'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue