mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Fix yeelight possible array change during iteration (#22849)
This commit is contained in:
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…
x
Reference in New Issue
Block a user