Improve test coverage (#625)

This commit is contained in:
Steven B
2024-01-10 19:37:43 +00:00
committed by GitHub
parent 3e0cd07b7c
commit d5a6fd8e73
5 changed files with 113 additions and 13 deletions

View File

@@ -275,7 +275,7 @@ class TapoDevice(SmartDevice):
]
networks.extend(network_list)
if resp["get_wireless_scan_info"]["sum"] > start_index + 10:
if resp["get_wireless_scan_info"].get("sum", 0) > start_index + 10:
return await _query_networks(networks, start_index=start_index + 10)
return networks