mirror of
https://github.com/andvikt/mega_hacs.git
synced 2026-11-02 20:08:44 +05:00
fix #127
This commit is contained in:
1 parent
d7180c0477
commit
d6ef137e75
1 file changed
+1
-1
@@ -131,7 +131,7 @@ class MegaRGBW(LightEntity, BaseMegaEntity):
|
||||
def max_values(self) -> list:
|
||||
if self._max_values is None:
|
||||
if self.is_ws:
|
||||
self._max_values = [255] * 3
|
||||
self._max_values = [255] * 4
|
||||
else:
|
||||
self._max_values = [
|
||||
255 if isinstance(x, int) else 4095 for x in self.port
|
||||
|
||||
Reference in new issue
Block a user