mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Fix tank utility token (#29801)
* Tank Utility Token Fix Fix 400 Bad Request on Invalid Token * Format Fix for Pull Request #29801 * Pylint Annotation Fix for Pull Request #29801
This commit is contained in:
parent
db0baab692
commit
e28fd16c84
@ -116,6 +116,8 @@ class TankUtilitySensor(Entity):
|
||||
if (
|
||||
http_error.response.status_code
|
||||
== requests.codes.unauthorized # pylint: disable=no-member
|
||||
or http_error.response.status_code
|
||||
== requests.codes.bad_request # pylint: disable=no-member
|
||||
):
|
||||
_LOGGER.info("Getting new token")
|
||||
self._token = tank_utility.auth.get_token(
|
||||
|
Loading…
x
Reference in New Issue
Block a user