From 7937b5dadd6bcc378db47a57f5f1ffdb22d1513a Mon Sep 17 00:00:00 2001 From: Ryan McLean Date: Thu, 3 Nov 2022 10:51:59 +0000 Subject: [PATCH] Update __init__.py Fixed if logic --- custom_components/solaredge_modbus/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/solaredge_modbus/__init__.py b/custom_components/solaredge_modbus/__init__.py index 297c550..740223d 100644 --- a/custom_components/solaredge_modbus/__init__.py +++ b/custom_components/solaredge_modbus/__init__.py @@ -565,7 +565,7 @@ def read_modbus_data_meter(self, meter_prefix, start_address): def read_modbus_data_inverter(self): inverter_data = self.read_holding_registers(unit=self._address, address=40071, count=38) - if not inverter_data.isError(): + if inverter_data.isError(): return False decoder = BinaryPayloadDecoder.fromRegisters(