mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 17:14:28 +05:00
fix color order
This commit is contained in:
@@ -264,7 +264,7 @@ class MegaRGBW(LightEntity, BaseMegaEntity):
|
|||||||
if item == "rgb_color":
|
if item == "rgb_color":
|
||||||
_after = map_reorder_rgb(value, RGB, self._color_order)
|
_after = map_reorder_rgb(value, RGB, self._color_order)
|
||||||
_after = _after or self.get_rgbw()
|
_after = _after or self.get_rgbw()
|
||||||
self._rgb_color = tuple(_after[:3])
|
self._rgb_color = map_reorder_rgb(tuple(_after[:3]), self._color_order, RGB)
|
||||||
if transition is None:
|
if transition is None:
|
||||||
transition = self.smooth.total_seconds()
|
transition = self.smooth.total_seconds()
|
||||||
ratio = self.calc_speed_ratio(_before, _after)
|
ratio = self.calc_speed_ratio(_before, _after)
|
||||||
|
|||||||
Reference in New Issue
Block a user