Fix for lint errors
This commit is contained in:
+2
-1
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user