Skip to content

Commit

Permalink
Merge pull request #184 from hultenvp/180-the-integration-stops-retri…
Browse files Browse the repository at this point in the history
…eving-data-from-the-server

180 the integration stops retrieving data from the server
  • Loading branch information
hultenvp authored Oct 30, 2022
2 parents 7a8df78 + 01ac343 commit 5759891
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion custom_components/solis/ginlong_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
_LOGGER = logging.getLogger(__name__)

# VERSION
VERSION = '0.3.2'
VERSION = '0.3.3'

# API NAME
API_NAME = 'Ginlong Platform 2.0'
Expand Down Expand Up @@ -223,6 +223,9 @@ async def login(self, session: ClientSession) -> bool:
# Fetch plant name
data = await self.fetch_inverter_data(next(iter(self._inverter_list)))
self._plant_name = getattr(data, INVERTER_PLANT_NAME)
except AttributeError:
_LOGGER.debug("Could not fetch inverter data, retry loging attempt")
self._online = False
except KeyError:
_LOGGER.error(
'Unable to login to %s, are username and password correct?',
Expand Down
2 changes: 1 addition & 1 deletion custom_components/solis/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"domain": "solis",
"version": "3.0.5",
"version": "3.0.6",
"config_flow": true,
"name": "Solis Inverter",
"iot_class": "cloud_push",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/solis/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
_LOGGER = logging.getLogger(__name__)

# VERSION
VERSION = '3.0.5'
VERSION = '3.0.6'

# ATTRIBUTES
LAST_UPDATED = 'Last updated'
Expand Down

0 comments on commit 5759891

Please sign in to comment.