mirror of
https://github.com/esphome/esphome.git
synced 2025-10-16 00:33:54 +01:00
Update esphome/components/api/__init__.py
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
@@ -356,6 +356,7 @@ async def homeassistant_service_to_code(
|
|||||||
cg.add(var.set_response_template(templ))
|
cg.add(var.set_response_template(templ))
|
||||||
|
|
||||||
if on_response := config.get(CONF_ON_RESPONSE):
|
if on_response := config.get(CONF_ON_RESPONSE):
|
||||||
|
cg.add_define("USE_API_HOMEASSISTANT_ACTION_RESPONSES")
|
||||||
trigger = cg.new_Pvariable(
|
trigger = cg.new_Pvariable(
|
||||||
on_response[CONF_TRIGGER_ID],
|
on_response[CONF_TRIGGER_ID],
|
||||||
template_arg,
|
template_arg,
|
||||||
|
Reference in New Issue
Block a user