From 87a87988bd57bc3d6b2e85262a5dc03a52cbfdc4 Mon Sep 17 00:00:00 2001 From: uvjim Date: Tue, 5 Jul 2022 21:50:30 +0100 Subject: [PATCH 1/3] Update sync_module.py Apologies. I missed this when submitting the last PR but had it locally for some reason. Without the change the device seems to work but gets identified as a mini and then incorrect end points are used. --- blinkpy/sync_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blinkpy/sync_module.py b/blinkpy/sync_module.py index 64ea61ad..17682324 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": "doorbells", + "doorbell": "doorbells", } @property From 3952f7cd56599e49d7a9a48d7280f863877e986c Mon Sep 17 00:00:00 2001 From: uvjim Date: Tue, 5 Jul 2022 22:09:07 +0100 Subject: [PATCH 2/3] type_map update Not sure how I missed this one... --- blinkpy/sync_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blinkpy/sync_module.py b/blinkpy/sync_module.py index 17682324..291b1067 100644 --- a/blinkpy/sync_module.py +++ b/blinkpy/sync_module.py @@ -124,7 +124,7 @@ def update_cameras(self, camera_type=BlinkCamera): """Update cameras from server.""" type_map = { "mini": BlinkCameraMini, - "lotus": BlinkDoorbell, + "doorbell": BlinkDoorbell, "default": BlinkCamera, } try: From f6f35a326eeadeb0ff655a9a4551ee6f1504e479 Mon Sep 17 00:00:00 2001 From: uvjim Date: Wed, 6 Jul 2022 09:37:34 +0100 Subject: [PATCH 3/3] update test to reflect change --- tests/test_sync_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_sync_functions.py b/tests/test_sync_functions.py index 50da7c53..5fac66fa 100644 --- a/tests/test_sync_functions.py +++ b/tests/test_sync_functions.py @@ -170,7 +170,7 @@ def test_sync_with_mixed_cameras(self, mock_resp): self.blink.sync["test"].camera_list = [ {"name": "foo", "id": 10, "type": "default"}, {"name": "bar", "id": 11, "type": "mini"}, - {"name": "fake", "id": 12, "type": "lotus"}, + {"name": "fake", "id": 12, "type": "doorbell"}, ] self.blink.homescreen = {