Skip to content

Commit

Permalink
Fix incorrect method
Browse files Browse the repository at this point in the history
  • Loading branch information
WillCodeForCats committed Jul 16, 2023
1 parent cdaa5ba commit e19a563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/solaredge_modbus_multi/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,11 @@ def battery_energy_reset_cycles(self) -> int:

@property
def number_of_meters(self) -> int:
return self.meters.count()
return len(self.meters)

@property
def number_of_batteries(self) -> int:
return self.batteries.count()
return len(self.batteries)

@property
def number_of_inverters(self) -> int:
Expand Down

0 comments on commit e19a563

Please sign in to comment.