@@ -100,13 +100,13 @@ async def start(self, effect, participants):
100
100
response = await AwaitAioLIFX ().wait (device .get_version )
101
101
device .product = response .product
102
102
if not self .running .get (device .mac_addr ):
103
- tasks .append (AwaitAioLIFX ().wait (device .get_color ))
103
+ tasks .append (asyncio . create_task ( AwaitAioLIFX ().wait (device .get_color ) ))
104
104
if device .color_zones :
105
105
if has_extended_multizone (device ):
106
- tasks .append (AwaitAioLIFX ().wait (device .get_extended_color_zones ))
106
+ tasks .append (asyncio . create_task ( AwaitAioLIFX ().wait (device .get_extended_color_zones ) ))
107
107
else :
108
108
for zone in range (0 , len (device .color_zones ), 8 ):
109
- tasks .append (AwaitAioLIFX ().wait (partial (device .get_color_zones , start_index = zone )))
109
+ tasks .append (asyncio . create_task ( AwaitAioLIFX ().wait (partial (device .get_color_zones , start_index = zone ) )))
110
110
if tasks :
111
111
await asyncio .wait (tasks )
112
112
@@ -177,7 +177,7 @@ async def _fixup_multizone(self, participants):
177
177
async def powertoggle (state ):
178
178
tasks = []
179
179
for device in fixup :
180
- tasks .append (AwaitAioLIFX ().wait (partial (device .set_power , state )))
180
+ tasks .append (asyncio . create_task ( AwaitAioLIFX ().wait (partial (device .set_power , state ) )))
181
181
await asyncio .wait (tasks )
182
182
await asyncio .sleep (0.3 )
183
183
@@ -188,7 +188,7 @@ async def powertoggle(state):
188
188
tasks = []
189
189
for device in fixup :
190
190
for zone in range (0 , len (device .color_zones ), 8 ):
191
- tasks .append (AwaitAioLIFX ().wait (partial (device .get_color_zones , start_index = zone )))
191
+ tasks .append (asyncio . create_task ( AwaitAioLIFX ().wait (partial (device .get_color_zones , start_index = zone ) )))
192
192
await asyncio .wait (tasks )
193
193
194
194
# Update pre_state colors
0 commit comments