Update login methods to ensure platform is refreshed
This commit is contained in:
+2
-2
@@ -43,8 +43,8 @@ def request_login(
|
||||
"app_version": "6.0.7 (520300) #afb0be72a",
|
||||
"client_name": "Computer",
|
||||
"client_type": "android",
|
||||
"device_identifier": "Blinkpy",
|
||||
"device_name": device_id,
|
||||
"device_identifier": device_id,
|
||||
"device_name": "Blinkpy",
|
||||
"os_version": "5.1.1",
|
||||
"reauth": "true",
|
||||
}
|
||||
|
||||
@@ -157,6 +157,8 @@ class Blink:
|
||||
sync_module.start()
|
||||
self.sync[network_name] = sync_module
|
||||
self.cameras = self.merge_cameras()
|
||||
self.available = self.refresh()
|
||||
self.key_required = False
|
||||
|
||||
def login(self):
|
||||
"""Perform server login. DEPRECATED."""
|
||||
@@ -169,6 +171,7 @@ class Blink:
|
||||
"""Retrieve the authentication token from Blink."""
|
||||
self.login_response = self.login_handler.login(self)
|
||||
if not self.login_response:
|
||||
self.available = False
|
||||
return False
|
||||
self.setup_params(self.login_response)
|
||||
if self.login_handler.check_key_required(self):
|
||||
|
||||
Reference in New Issue
Block a user