fix: Correctly read battery packs' values - wait before setting the target pack number #109
This commit is contained in:
1 parent
23551ae829
commit
0f33a31ee5
1 file changed
+5
@@ -117,6 +117,11 @@ class DeviceReader:
|
||||
_LOGGER.warning("Pack polling failed (pack_num %i doesn't match expected %i)", set_pack, pack)
|
||||
continue
|
||||
|
||||
if self.bluetti_device.pack_num_max > 1:
|
||||
# We need to wait after switching packs
|
||||
# for the data to be available
|
||||
await asyncio.sleep(5)
|
||||
|
||||
for command in pack_commands:
|
||||
# Request & parse result for each pack
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user