Use assignment expressions 36 (#58825)
This commit is contained in:
parent
3f1b4906bf
commit
1ce889be60
19 changed files with 28 additions and 60 deletions
|
@ -91,8 +91,7 @@ class LcnFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
return self.async_abort(reason="connection_timeout")
|
||||
|
||||
# check if we already have a host with the same address configured
|
||||
entry = get_config_entry(self.hass, data)
|
||||
if entry:
|
||||
if entry := get_config_entry(self.hass, data):
|
||||
entry.source = config_entries.SOURCE_IMPORT
|
||||
|
||||
# Cleanup entity and device registry, if we imported from configuration.yaml to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue