From 916e7dd35925f04237a793cf9e8eccfdf1300852 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 11 Jul 2023 17:28:54 +0200 Subject: [PATCH] Fix a couple of typos (#96298) --- homeassistant/components/device_automation/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/device_automation/helpers.py b/homeassistant/components/device_automation/helpers.py index 038ded07e8a..83c599bc65d 100644 --- a/homeassistant/components/device_automation/helpers.py +++ b/homeassistant/components/device_automation/helpers.py @@ -75,7 +75,7 @@ async def async_validate_device_automation_config( # config entry is loaded registry = dr.async_get(hass) if not (device := registry.async_get(validated_config[CONF_DEVICE_ID])): - # The device referenced by the device trigger does not exist + # The device referenced by the device automation does not exist raise InvalidDeviceAutomationConfig( f"Unknown device '{validated_config[CONF_DEVICE_ID]}'" ) @@ -91,7 +91,7 @@ async def async_validate_device_automation_config( break if not device_config_entry: - # The config entry referenced by the device trigger does not exist + # The config entry referenced by the device automation does not exist raise InvalidDeviceAutomationConfig( f"Device '{validated_config[CONF_DEVICE_ID]}' has no config entry from " f"domain '{validated_config[CONF_DOMAIN]}'"