diff --git a/custom_components/georide/__init__.py b/custom_components/georide/__init__.py index 88f3081..0a830e4 100644 --- a/custom_components/georide/__init__.py +++ b/custom_components/georide/__init__.py @@ -184,7 +184,7 @@ class GeoRideContext: async def get_token(self): """ here we return the current valid tocken """ - jwt_data = jwt.decode(self._token, verify=False) + jwt_data = jwt.decode(self._token, options={"verify_signature": False}) exp_timestamp = jwt_data['exp'] epoch = math.ceil(time.time()) diff --git a/custom_components/georide/manifest.json b/custom_components/georide/manifest.json index 69a2a00..a3793e2 100644 --- a/custom_components/georide/manifest.json +++ b/custom_components/georide/manifest.json @@ -5,9 +5,9 @@ "documentation": "https://github.com/ptimatth/GeorideHA", "requirements": [ "georideapilib>=0.6.1", - "pyjwt>=1.7.1" + "pyjwt==2.1.0" ], "dependencies": [], "codeowners": ["ptimatth"], - "version": "0.8.0" + "version": "0.8.1" } \ No newline at end of file diff --git a/hacs.json b/hacs.json index 79d0e21..cec66f3 100644 --- a/hacs.json +++ b/hacs.json @@ -4,5 +4,5 @@ "render_readme": true, "domains": ["devices_tracker", "sensor"], "country": ["FR"], - "homeassistant": "2021.6.0" + "homeassistant": "2021.10.0" } \ No newline at end of file