fix pack polling

This commit is contained in:
Patrick762 committed 2024-05-31 14:23:07 +02:00
1 parent c3bfad0ea6
commit 6be2abaaf2
10 files changed
+16 -41

No files matched your search

@@ -45,7 +45,7 @@ class BluettiDevice:
@property
def pack_num_field(self) -> List[ReadHoldingRegisters]:
"""The address 'range' of the pack num"""
"""The address 'range' of the pack num result. Matches pack_num_result"""
return []
def has_field(self, field: str):
@@ -60,5 +60,5 @@ class ProtocolV1Device(BluettiDevice):
@property
def pack_num_field(self) -> List[ReadHoldingRegisters]:
return [
ReadHoldingRegisters(3006, 1),
ReadHoldingRegisters(96, 1),
]