Fix WebSocket condition testing (#78570)
This commit is contained in:
parent
564150169b
commit
a19a7e64d5
2 changed files with 37 additions and 2 deletions
|
@ -616,8 +616,7 @@ async def handle_test_condition(
|
|||
from homeassistant.helpers import condition
|
||||
|
||||
# Do static + dynamic validation of the condition
|
||||
config = cv.CONDITION_SCHEMA(msg["condition"])
|
||||
config = await condition.async_validate_condition_config(hass, config)
|
||||
config = await condition.async_validate_condition_config(hass, msg["condition"])
|
||||
# Test the condition
|
||||
check_condition = await condition.async_from_config(hass, config)
|
||||
connection.send_result(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue