Use assignment expressions 11 (#57792)
This commit is contained in:
parent
238b488642
commit
aa7dc78a1e
25 changed files with 45 additions and 111 deletions
|
@ -420,9 +420,7 @@ def handle_entity_source(
|
|||
perm_category=CAT_ENTITIES,
|
||||
)
|
||||
|
||||
source = raw_sources.get(entity_id)
|
||||
|
||||
if source is None:
|
||||
if (source := raw_sources.get(entity_id)) is None:
|
||||
connection.send_error(msg["id"], ERR_NOT_FOUND, "Entity not found")
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue