Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
LeighCurran committed Nov 6, 2021
1 parent 7e26be3 commit 32ea49f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/auroraplus/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"requirements": ["AuroraPlus==1.1.6"],
"iot_class": "cloud_polling",
"config_flow": false,
"version": "1.1.6"
"version": "1.1.7"
}
4 changes: 1 addition & 3 deletions custom_components/auroraplus/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
name = config.get(CONF_NAME)

try:
AuroraPlus = auroraplus.api()
AuroraPlus.auth(username, password)
AuroraPlus = auroraplus.api(username, password)
_LOGGER.debug("Error: %s", AuroraPlus.Error)
except OSError as err:
_LOGGER.error("Connection to Aurora+ failed: %s", err)
Expand Down Expand Up @@ -124,7 +123,6 @@ def update(self):
if self._sensor == SENSOR_KILOWATTHOURUSAGE or self._sensor == SENSOR_DOLLARVALUEUSAGE:
self._session.getsummary()
self._data = self._session
self._data = self._session.close()
except OSError as err:
_LOGGER.error("Updating Aurora+ failed: %s", err)

Expand Down

0 comments on commit 32ea49f

Please sign in to comment.