mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Fix a couple of typos (#96298)
This commit is contained in:
parent
f2f9b20880
commit
916e7dd359
@ -75,7 +75,7 @@ async def async_validate_device_automation_config(
|
|||||||
# config entry is loaded
|
# config entry is loaded
|
||||||
registry = dr.async_get(hass)
|
registry = dr.async_get(hass)
|
||||||
if not (device := registry.async_get(validated_config[CONF_DEVICE_ID])):
|
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(
|
raise InvalidDeviceAutomationConfig(
|
||||||
f"Unknown device '{validated_config[CONF_DEVICE_ID]}'"
|
f"Unknown device '{validated_config[CONF_DEVICE_ID]}'"
|
||||||
)
|
)
|
||||||
@ -91,7 +91,7 @@ async def async_validate_device_automation_config(
|
|||||||
break
|
break
|
||||||
|
|
||||||
if not device_config_entry:
|
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(
|
raise InvalidDeviceAutomationConfig(
|
||||||
f"Device '{validated_config[CONF_DEVICE_ID]}' has no config entry from "
|
f"Device '{validated_config[CONF_DEVICE_ID]}' has no config entry from "
|
||||||
f"domain '{validated_config[CONF_DOMAIN]}'"
|
f"domain '{validated_config[CONF_DOMAIN]}'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user