Use assignment expressions 36 (#58825)

This commit is contained in:
Marc Mueller 2021-10-31 18:35:27 +01:00 committed by GitHub
parent 3f1b4906bf
commit 1ce889be60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 28 additions and 60 deletions

View file

@ -65,8 +65,7 @@ class SwisscomDeviceScanner(DeviceScanner):
return False
_LOGGER.info("Loading data from Swisscom Internet Box")
data = self.get_swisscom_data()
if not data:
if not (data := self.get_swisscom_data()):
return False
active_clients = [client for client in data.values() if client["status"]]