Skip to content

Commit

Permalink
Fix RecycleApp authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
pippyn committed Apr 24, 2023
1 parent 938ec95 commit 8fc5fd4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion custom_components.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sensor.afvalbeheer": {
"version": "5.2.3",
"version": "5.2.4",
"local_location": "/custom_components/afvalbeheer/__init__.py",
"remote_location": "https://raw.githubusercontent.com/pippyn/Home-Assistant-Sensor-Afvalbeheer/master/custom_components/afvalbeheer/__init__.py",
"visit_repo": "https://github.com/pippyn/Home-Assistant-Sensor-Afvalbeheer",
Expand Down
3 changes: 1 addition & 2 deletions custom_components/afvalbeheer/API.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,8 +992,7 @@ async def update(self):
_LOGGER.debug('Updating Waste collection dates using Rest API')

try:
if (not self.accessToken):
await self.hass.async_add_executor_job(self.__get_access_token)
await self.hass.async_add_executor_job(self.__get_access_token)

if (not self.postcode_id or not self.street_id) and self.accessToken:
await self.hass.async_add_executor_job(self.__get_location_ids)
Expand Down
5 changes: 3 additions & 2 deletions custom_components/afvalbeheer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Sensor component for waste pickup dates from dutch and belgium waste collectors
Original Author: Pippijn Stortelder
Current Version: 5.2.3 20230418
Current Version: 5.2.4 20230424
20220829 - Major change: Added Calendar support (credits @WouterTuinstra)
20220829 - Give persistant notifications unique id's
20220901 - Code cleanup
Expand All @@ -25,6 +25,7 @@
20230407 - Fix mapping for BAR
20230418 - Added support for suffix in address for RMN and BAR
20230418 - Changed Dutch month names to lowercase
20230424 - Fix RecycleApp authentication
Example config:
Configuration.yaml:
Expand Down Expand Up @@ -60,7 +61,7 @@
from .API import get_wastedata_from_config


__version__ = "5.2.3"
__version__ = "5.2.4"


_LOGGER = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/afvalbeheer/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"rsa",
"pycryptodome"
],
"version": "5.2.3"
"version": "5.2.4"
}

0 comments on commit 8fc5fd4

Please sign in to comment.