mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add error message to device registry helper (#118676)
This commit is contained in:
parent
a87b422d3e
commit
891f9c9578
@ -820,7 +820,9 @@ class DeviceRegistry(BaseRegistry[dict[str, list[dict[str, Any]]]]):
|
||||
)
|
||||
|
||||
if merge_identifiers is not UNDEFINED and new_identifiers is not UNDEFINED:
|
||||
raise HomeAssistantError
|
||||
raise HomeAssistantError(
|
||||
"Cannot define both merge_identifiers and new_identifiers"
|
||||
)
|
||||
|
||||
if isinstance(disabled_by, str) and not isinstance(
|
||||
disabled_by, DeviceEntryDisabler
|
||||
|
Loading…
x
Reference in New Issue
Block a user