Jesse Kerkhoven 6 gadi atpakaļ
vecāks
revīzija
004139e9de
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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]