mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Twinkly RGBW color fixed (#136593)
This commit is contained in:
parent
a2830e7ebb
commit
7c87bb2ffb
@ -99,9 +99,9 @@ class TwinklyLight(TwinklyEntity, LightEntity):
|
||||
):
|
||||
await self.client.interview()
|
||||
if LightEntityFeature.EFFECT & self.supported_features:
|
||||
# Static color only supports rgb
|
||||
await self.client.set_static_colour(
|
||||
(
|
||||
kwargs[ATTR_RGBW_COLOR][3],
|
||||
kwargs[ATTR_RGBW_COLOR][0],
|
||||
kwargs[ATTR_RGBW_COLOR][1],
|
||||
kwargs[ATTR_RGBW_COLOR][2],
|
||||
|
@ -140,7 +140,7 @@ async def test_turn_on_with_color_rgbw(
|
||||
)
|
||||
|
||||
mock_twinkly_client.interview.assert_called_once_with()
|
||||
mock_twinkly_client.set_static_colour.assert_called_once_with((128, 64, 32))
|
||||
mock_twinkly_client.set_static_colour.assert_called_once_with((0, 128, 64, 32))
|
||||
mock_twinkly_client.set_mode.assert_called_once_with("color")
|
||||
assert mock_twinkly_client.default_mode == "color"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user