Skip to content

Commit

Permalink
fix: Logger _warn calls in miele_at_home.py (#163)
Browse files Browse the repository at this point in the history
Should be _Logger.warn instead
  • Loading branch information
fabiomsouto committed Sep 6, 2023
1 parent f830d8b commit dc2c21c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/miele/miele_at_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def _save_token(self, token):
f.write(json.dumps(token))
f.close()
except IOError:
_LOGGER._warn(
_LOGGER.warn(
"Couldn't write token cache to {0}".format(self._cache_path)
)
pass
Expand All @@ -276,7 +276,7 @@ def _remove_token(self):
try:
os.remove(self._cache_path)
except IOError:
_LOGGER._warn(
_LOGGER.warn(
"Couldn't delte token cache to {0}".format(self._cache_path)
)
pass

0 comments on commit dc2c21c

Please sign in to comment.