mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Merge of nested IF-IF case in elkm1 test (#48374)
This commit is contained in:
@@ -15,8 +15,7 @@ def mock_elk(invalid_auth=None, sync_complete=None):
|
||||
if type_ == "login":
|
||||
if invalid_auth is not None:
|
||||
callback(not invalid_auth)
|
||||
elif type_ == "sync_complete":
|
||||
if sync_complete:
|
||||
elif type_ == "sync_complete" and sync_complete:
|
||||
callback()
|
||||
|
||||
mocked_elk = MagicMock()
|
||||
|
Reference in New Issue
Block a user