Fix for lint errors

This commit is contained in:
Kevin Fronczak
2019-01-31 13:24:14 -05:00
parent 9738f84457
commit ae5d73e197
2 changed files with 2 additions and 2 deletions
+2 -1
View File
@@ -91,7 +91,7 @@ class Blink():
Essentially this is just a wrapper function for ease of use.
"""
if not self.allow_duplicate_logs:
self._reset_handler()
self._reset_logger()
if self._username is None or self._password is None:
if not self.login():
return
@@ -289,6 +289,7 @@ class Blink():
_LOGGER.info("Downloaded video to %s", filename)
# pylint: disable=no-self-use
def _reset_logger(self):
"""Reset the log handler."""
for handler in _LOGGER.handlers:
-1
View File
@@ -8,7 +8,6 @@ any communication related errors at startup.
import unittest
from unittest import mock
import logging
from blinkpy import api
from blinkpy.blinkpy import Blink
from blinkpy.sync_module import BlinkSyncModule