Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Fixed if logic
  • Loading branch information
ryanm101 authored Nov 3, 2022
1 parent 074fa97 commit 7937b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/solaredge_modbus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7937b5d

Please sign in to comment.