added more fields

This commit is contained in:
Patrick762 committed 2023-08-01 21:20:02 +02:00
1 parent 12cd2719d2
commit cc7891ed6a
5 files changed
+57 -13

No files matched your search

+10 -1
View File
@@ -31,7 +31,7 @@ _LOGGER = logging.getLogger(__name__)
class DummyDevice(BluettiDevice):
"""Dummy device.
"""Dummy device used to add more fields to existing devices.
Changes made here are only temporary and should also be
contributed to https://github.com/warhammerkid/bluetti_mqtt
@@ -45,6 +45,15 @@ class DummyDevice(BluettiDevice):
@property
def polling_commands(self) -> List[ReadHoldingRegisters]:
if self.type == "EP600":
return [
ReadHoldingRegisters(100, 62),
ReadHoldingRegisters(2022, 6),
ReadHoldingRegisters(6101, 7),
ReadHoldingRegisters(6175, 2),
ReadHoldingRegisters(6181, 2),
]
return self._parent.polling_commands
@property