Skip to content

Commit

Permalink
Only call post_process just once
Browse files Browse the repository at this point in the history
  • Loading branch information
hultenvp authored Jul 17, 2023
1 parent 83623df commit 7bb38fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/solis/soliscloud_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,12 @@ async def fetch_inverter_data(self, inverter_serial: str) -> GinlongData | None:
if payload is not None:
#_LOGGER.debug("%s", payload)
self._collect_inverter_data(payload)
self._post_process()
#if payload2 is not None:
# self._collect_station_list_data(payload2)
if payload_detail is not None:
self._collect_plant_data(payload_detail)
self._post_process()
if self._data is not None and INVERTER_SERIAL in self._data:
self._post_process()
return GinlongData(self._data)
_LOGGER.debug("Unexpected response from server: %s", payload)
return None
Expand Down

0 comments on commit 7bb38fc

Please sign in to comment.