diff --git a/blinkpy/camera.py b/blinkpy/camera.py index 1212f508..a80ab30d 100644 --- a/blinkpy/camera.py +++ b/blinkpy/camera.py @@ -150,7 +150,9 @@ def extract_config_info(self, config): self.serial = config.get("serial", None) self.motion_enabled = config.get("enabled", "unknown") self.battery_voltage = config.get("battery_voltage", None) - self.battery_state = config.get("battery_state", None) + self.battery_state = config.get("battery_state", None) or config.get( + "battery", None + ) self.temperature = config.get("temperature", None) self.wifi_strength = config.get("wifi_strength", None) self.product_type = config.get("type", None) diff --git a/blinkpy/sync_module.py b/blinkpy/sync_module.py index 0e37702a..1873a7bd 100644 --- a/blinkpy/sync_module.py +++ b/blinkpy/sync_module.py @@ -39,7 +39,7 @@ def __init__(self, blink, network_name, network_id, camera_list): self.available = False self.type_key_map = { "mini": "owls", - "lotus": "doorbell", + "lotus": "doorbells", } @property diff --git a/requirements_test.txt b/requirements_test.txt index f98b2aae..1c58c291 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -3,7 +3,7 @@ coverage==6.4.1 flake8==3.9.1 flake8-docstrings==1.6.0 pre-commit==2.17.0 -pylint==2.10.2 +pylint==2.14.3 pydocstyle==6.0.0 pytest==7.1.1 pytest-cov==3.0.0