Run ruff format for device registry (#118582)

This commit is contained in:
Jan-Philipp Benecke 2024-05-31 22:22:48 +02:00 committed by Paulus Schoutsen
parent 4b06c5d2fb
commit 6ba9e7d5fd

View File

@ -815,7 +815,9 @@ class DeviceRegistry(BaseRegistry[dict[str, list[dict[str, Any]]]]):
config_entries = old.config_entries
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:
raise HomeAssistantError