added pack polling registers to base devices
This commit is contained in:
1 parent
037ce83891
commit
4f92e9147e
2 files changed
+12
No files matched your search
@@ -63,3 +63,11 @@ class ProtocolV1Device(BluettiDevice):
|
||||
@property
|
||||
def writable_ranges(self) -> List[range]:
|
||||
return [range(3006, 3008)]
|
||||
|
||||
@property
|
||||
def pack_polling_commands(self) -> List[ReadHoldingRegisters]:
|
||||
return [
|
||||
ReadHoldingRegisters(91, 2),
|
||||
ReadHoldingRegisters(96, 1),
|
||||
ReadHoldingRegisters(98, 2),
|
||||
]
|
||||
@@ -61,3 +61,7 @@ class ProtocolV2Device(BluettiDevice):
|
||||
@property
|
||||
def writable_ranges(self) -> List[range]:
|
||||
return []
|
||||
|
||||
@property
|
||||
def pack_polling_commands(self) -> List[ReadHoldingRegisters]:
|
||||
return []
|
||||
Reference in new issue
Block a user