diff --git a/custom_components.json b/custom_components.json index 04779e3..6f719dc 100644 --- a/custom_components.json +++ b/custom_components.json @@ -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", diff --git a/custom_components/afvalbeheer/API.py b/custom_components/afvalbeheer/API.py index 086ebd0..cfb526c 100644 --- a/custom_components/afvalbeheer/API.py +++ b/custom_components/afvalbeheer/API.py @@ -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) diff --git a/custom_components/afvalbeheer/__init__.py b/custom_components/afvalbeheer/__init__.py index 949297d..7ed34c2 100644 --- a/custom_components/afvalbeheer/__init__.py +++ b/custom_components/afvalbeheer/__init__.py @@ -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 @@ -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: @@ -60,7 +61,7 @@ from .API import get_wastedata_from_config -__version__ = "5.2.3" +__version__ = "5.2.4" _LOGGER = logging.getLogger(__name__) diff --git a/custom_components/afvalbeheer/manifest.json b/custom_components/afvalbeheer/manifest.json index 96fbb6a..0a46a5a 100644 --- a/custom_components/afvalbeheer/manifest.json +++ b/custom_components/afvalbeheer/manifest.json @@ -8,5 +8,5 @@ "rsa", "pycryptodome" ], - "version": "5.2.3" + "version": "5.2.4" }