mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Skip webostv trigger validation before the domain is setup (#80372)
* Skip trigger validation before the domain is setup * Included None as return type * Keep function signature intact. Check at the source
This commit is contained in:
@@ -46,6 +46,7 @@ async def async_validate_trigger_config(
|
|||||||
device_id = config[CONF_DEVICE_ID]
|
device_id = config[CONF_DEVICE_ID]
|
||||||
try:
|
try:
|
||||||
device = async_get_device_entry_by_device_id(hass, device_id)
|
device = async_get_device_entry_by_device_id(hass, device_id)
|
||||||
|
if DOMAIN in hass.data:
|
||||||
async_get_client_wrapper_by_device_entry(hass, device)
|
async_get_client_wrapper_by_device_entry(hass, device)
|
||||||
except ValueError as err:
|
except ValueError as err:
|
||||||
raise InvalidDeviceAutomationConfig(err) from err
|
raise InvalidDeviceAutomationConfig(err) from err
|
||||||
|
Reference in New Issue
Block a user