Run ruff format for device registry (#118582)
parent
f6800e6968
commit
32b51b8792
|
@ -815,7 +815,9 @@ class DeviceRegistry(BaseRegistry[dict[str, list[dict[str, Any]]]]):
|
||||||
config_entries = old.config_entries
|
config_entries = old.config_entries
|
||||||
|
|
||||||
if merge_connections is not UNDEFINED and new_connections is not UNDEFINED:
|
if merge_connections is not UNDEFINED and new_connections is not UNDEFINED:
|
||||||
raise HomeAssistantError("Cannot define both merge_connections and new_connections")
|
raise HomeAssistantError(
|
||||||
|
"Cannot define both merge_connections and new_connections"
|
||||||
|
)
|
||||||
|
|
||||||
if merge_identifiers is not UNDEFINED and new_identifiers is not UNDEFINED:
|
if merge_identifiers is not UNDEFINED and new_identifiers is not UNDEFINED:
|
||||||
raise HomeAssistantError
|
raise HomeAssistantError
|
||||||
|
|
Loading…
Reference in New Issue