Skip to content

Commit

Permalink
replace loggier.warn with warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsaxon committed May 2, 2020
1 parent 4c1bf9c commit 24e3372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysonofflanr3/sonoffdevice.py
Expand Up @@ -212,7 +212,7 @@ async def send_updated_params_loop(self):
retry_count += 1

except asyncio.TimeoutError:
self.logger.warn(
self.logger.warning(
"Device: %s. "
"Update message not received in timeout period, retry",
self.device_id,
Expand All @@ -225,7 +225,7 @@ async def send_updated_params_loop(self):

except OSError as ex:
if retry_count == 0:
self.logger.warn(
self.logger.warning(
"Connection issue for device %s: %s",
self.device_id,
format(ex),
Expand Down

0 comments on commit 24e3372

Please sign in to comment.