Use assignment expressions 38 (#58828)
This commit is contained in:
parent
b6d9e517c2
commit
72801867d6
15 changed files with 26 additions and 54 deletions
|
@ -71,8 +71,7 @@ class ActiontecDeviceScanner(DeviceScanner):
|
|||
if not self.success_init:
|
||||
return False
|
||||
|
||||
actiontec_data = self.get_actiontec_data()
|
||||
if actiontec_data is None:
|
||||
if (actiontec_data := self.get_actiontec_data()) is None:
|
||||
return False
|
||||
self.last_results = [
|
||||
device for device in actiontec_data if device.timevalid > -60
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue