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 #29801pull/29830/head
parent
db0baab692
commit
e28fd16c84
|
@ -116,6 +116,8 @@ class TankUtilitySensor(Entity):
|
||||||
if (
|
if (
|
||||||
http_error.response.status_code
|
http_error.response.status_code
|
||||||
== requests.codes.unauthorized # pylint: disable=no-member
|
== 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")
|
_LOGGER.info("Getting new token")
|
||||||
self._token = tank_utility.auth.get_token(
|
self._token = tank_utility.auth.get_token(
|
||||||
|
|
Loading…
Reference in New Issue