Use assignment expressions 38 (#58828)
This commit is contained in:
parent
b6d9e517c2
commit
72801867d6
15 changed files with 26 additions and 54 deletions
|
@ -521,8 +521,7 @@ class GoogleEntity:
|
|||
if area and area.name:
|
||||
device["roomHint"] = area.name
|
||||
|
||||
device_info = await _get_device_info(device_entry)
|
||||
if device_info:
|
||||
if device_info := await _get_device_info(device_entry):
|
||||
device["deviceInfo"] = device_info
|
||||
|
||||
return device
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue