Fix implicit-return in xiaomi (#122938)
parent
a6aae4e857
commit
4aacec2de7
|
@ -172,7 +172,6 @@ def _get_token(host, username, password):
|
||||||
)
|
)
|
||||||
_LOGGER.exception(error_message, url, data, result)
|
_LOGGER.exception(error_message, url, data, result)
|
||||||
return None
|
return None
|
||||||
else:
|
|
||||||
_LOGGER.error(
|
_LOGGER.error("Invalid response: [%s] at url: [%s] with data [%s]", res, url, data)
|
||||||
"Invalid response: [%s] at url: [%s] with data [%s]", res, url, data
|
return None
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in New Issue