Add set_all
This commit is contained in:
parent
5ff9df9894
commit
6142a4eecd
1 changed files with 5 additions and 0 deletions
|
@ -149,6 +149,11 @@ class L(ReactiveMixin): # ruff: disable=invalid-name
|
|||
if self.light:
|
||||
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):
|
||||
return self._val.__iter__()
|
||||
|
||||
|
|
Loading…
Reference in a new issue