mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
fix for last_results
This commit is contained in:
parent
5533618bd2
commit
b9b751d234
@ -140,10 +140,10 @@ class ActiontecDeviceScanner(object):
|
|||||||
if len(exclude_targets) > 0:
|
if len(exclude_targets) > 0:
|
||||||
exclude_target_list = [t.ip for t in exclude_targets]
|
exclude_target_list = [t.ip for t in exclude_targets]
|
||||||
|
|
||||||
self.last_results = []
|
|
||||||
actiontec_data = self.get_actiontec_data()
|
actiontec_data = self.get_actiontec_data()
|
||||||
if not actiontec_data:
|
if not actiontec_data:
|
||||||
return False
|
return False
|
||||||
|
self.last_results = []
|
||||||
for client in exclude_target_list:
|
for client in exclude_target_list:
|
||||||
if client in actiontec_data:
|
if client in actiontec_data:
|
||||||
actiontec_data.pop(client)
|
actiontec_data.pop(client)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user