Skip to content

Commit

Permalink
align naming and remove typos
Browse files Browse the repository at this point in the history
  • Loading branch information
henne49 committed Jun 6, 2024
1 parent 1878823 commit 6b73227
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dbus_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,14 @@ def check_opendtu_data(self, meter_data):
raise ValueError("You do not have the latest OpenDTU Version to run this script,"
"please upgrade your OpenDTU to at least version 4.4.3")

def fetch_opendtu_inverter_data(self, inverter_serial):
'''Fetch inverter date from OpenDTU device for one interter'''
def fetch_opendtu_iv_data(self, inverter_serial):
'''Fetch inverter date from OpenDTU device for one inverter'''
iv_url = self._get_status_url() + "?inv=" + inverter_serial
logging.debug(f"Inverter URL: {iv_url}")
return self.fetch_url(iv_url)

def fetch_ahoy_iv_data(self, inverter_number):
'''Fetch inverter date from Ahoy device for one interter'''
'''Fetch inverter date from Ahoy device for one inverter'''
iv_url = self.get_ahoy_base_url() + "/inverter/id/" + str(inverter_number)
logging.debug(f"Inverter URL: {iv_url}")
return self.fetch_url(iv_url)
Expand Down Expand Up @@ -606,7 +607,7 @@ def get_values_for_inverter(self):
else:
inverter_serial = meter_data["inverters"][self.pvinverternumber]["serial"]
logging.info(f"Inverter #{self.pvinverternumber} Serial: {inverter_serial}")
root_meter_data = self.fetch_opendtu_inverter_data(inverter_serial)["inverters"][0]
root_meter_data = self.fetch_opendtu_iv_data(inverter_serial)["inverters"][0]
logging.debug(f"{root_meter_data}")
firmware_v24_2_12_or_newer = False

Expand Down

0 comments on commit 6b73227

Please sign in to comment.