Revert Hue color state to be xy-based (#14154)
This commit is contained in:
1 parent
aa8bd37143
commit
30d987f59f
2 files changed
+1
-17
No files matched your search
@@ -650,19 +650,6 @@ def test_hs_color():
|
||||
|
||||
assert light.hs_color is None
|
||||
|
||||
light = hue_light.HueLight(
|
||||
light=Mock(state={
|
||||
'colormode': 'hs',
|
||||
'hue': 1234,
|
||||
'sat': 123,
|
||||
}),
|
||||
request_bridge_update=None,
|
||||
bridge=Mock(),
|
||||
is_group=False,
|
||||
)
|
||||
|
||||
assert light.hs_color == (1234 / 65535 * 360, 123 / 255 * 100)
|
||||
|
||||
light = hue_light.HueLight(
|
||||
light=Mock(state={
|
||||
'colormode': 'xy',
|
||||
|
||||
Reference in new issue
Block a user