Jesse Kerkhoven 6 lat temu
rodzic
commit
004139e9de
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      energymeter.py

+ 1 - 1
energymeter.py

@@ -850,7 +850,7 @@ class AsyncModbusTCPMeter(ModbusTCPMeter):
     async def read(self, regnames=None):
         if regnames is None:
             registers = self.REGS
-            return await self.read_multiple(registers)
+            return await self._read_multiple(registers)
 
         if isinstance(regnames, str):
             registers = [register for register in self.REGS if register['name'] == regnames]