Fix yeelight possible array change during iteration (#22849)

pull/22883/head
zewelor 2019-04-07 22:05:38 +02:00 committed by Pascal Vizeli
parent c5d4b7c243
commit 3f15b6b2d3
1 changed files with 1 additions and 1 deletions

View File

@ -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(