From 891f9c9578f684e5e8bb1d532f639a2e1641b41d Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 3 Jun 2024 09:58:02 +0200 Subject: [PATCH] Add error message to device registry helper (#118676) --- homeassistant/helpers/device_registry.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/helpers/device_registry.py b/homeassistant/helpers/device_registry.py index cb336d1455b..962cd01bf00 100644 --- a/homeassistant/helpers/device_registry.py +++ b/homeassistant/helpers/device_registry.py @@ -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