Skip to content

Commit

Permalink
#13: switched character position
Browse files Browse the repository at this point in the history
  • Loading branch information
Gentleman1983 committed Mar 10, 2024
1 parent 8268361 commit aa826ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ginlong_solis_api_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def calculate_unit_multiplicator(expected_unit, inverter_unit):
logging.debug("Detected empty inverter unit. Returning multiplicator = 1")
return 1

fb_inv = inverter_unit[1]
fb_exp = expected_unit[1]
fb_inv = inverter_unit[0]
fb_exp = expected_unit[0]
multiplicator = calculate_factor(fb_inv) / calculate_factor(fb_exp)
logging.debug("Call for caluculating multiplicator using expected unit '%s' and inverter unit '%s' resulting in multiplicator '%s'.", expected_unit, inverter_unit, multiplicator) # pylint: disable=line-too-long
return multiplicator
Expand Down

0 comments on commit aa826ea

Please sign in to comment.