Fix yeelight possible array change during iteration (#22849)
parent
c5d4b7c243
commit
3f15b6b2d3
|
@ -134,7 +134,7 @@ def setup(hass, config):
|
|||
discovery.listen(hass, SERVICE_YEELIGHT, device_discovered)
|
||||
|
||||
def update(event):
|
||||
for device in yeelight_data.values():
|
||||
for device in list(yeelight_data.values()):
|
||||
device.update()
|
||||
|
||||
track_time_interval(
|
||||
|
|
Loading…
Reference in New Issue