added sleep() between pack pollings
This commit is contained in:
1 parent
ad536235bb
commit
58f2ec50c4
1 file changed
+3
@@ -136,6 +136,9 @@ class PollingCoordinator(DataUpdateCoordinator):
|
|||||||
self.bluetti_device.build_setter_command('pack_num', pack)
|
self.bluetti_device.build_setter_command('pack_num', pack)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# We need to wait after switching packs for the data to be available
|
||||||
|
await asyncio.sleep(5)
|
||||||
|
|
||||||
for command in self.bluetti_device.pack_polling_commands:
|
for command in self.bluetti_device.pack_polling_commands:
|
||||||
# Request & parse result for each pack
|
# Request & parse result for each pack
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in new issue
Block a user