Skip to content

Commit

Permalink
fix bill due date error
Browse files Browse the repository at this point in the history
  • Loading branch information
thematrixdev committed Oct 22, 2024
1 parent eb6b6b3 commit 1c07137
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/clp/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "11.7.7",
"version": "11.7.8",
"domain": "clp",
"name": "CLP",
"documentation": "https://github.com/thematrixdev/home-assistant-clp",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/clp/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ async def auth(self):
)
self._access_token = response['data']['access_token']
self._refresh_token = response['data']['refresh_token']
self._access_token_expiry_time = datetime.datetime.strptime(response['data']['expires_in'], '%Y-%m-%dT%H:%M:%S.%fZ').replace(tzinfo=datetime.timezone.utc)
self._access_token_expiry_time = datetime.datetime.strptime(response['data']['expires_in'], '%Y%m%d%H%M%S') if (response['data']['expires_in'] is not None and response['data']['expires_in'] != '') else None


@handle_errors
Expand Down

0 comments on commit 1c07137

Please sign in to comment.