Add set_all

This commit is contained in:
Constantin Gierczak--Galle 2023-12-15 17:36:54 +01:00
parent 5ff9df9894
commit 6142a4eecd

View file

@ -149,6 +149,11 @@ class L(ReactiveMixin): # ruff: disable=invalid-name
if self.light: if self.light:
self.light.attr_set_hook(self.key, self) self.light.attr_set_hook(self.key, self)
def set_all(self, l):
self._val = l
if self.light:
self.light.attr_set_hook(self.key, self)
def __iter__(self): def __iter__(self):
return self._val.__iter__() return self._val.__iter__()