mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Run ruff format for device registry (#118582)
This commit is contained in:
parent
4b06c5d2fb
commit
6ba9e7d5fd
@ -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…
x
Reference in New Issue
Block a user