mirror of
https://github.com/esphome/esphome.git
synced 2025-08-06 10:27:49 +00:00
preen
This commit is contained in:
parent
06dd731c78
commit
782d894801
@ -23,7 +23,7 @@ from esphome.const import (
|
|||||||
CONF_TRIGGER_ID,
|
CONF_TRIGGER_ID,
|
||||||
CONF_VARIABLES,
|
CONF_VARIABLES,
|
||||||
)
|
)
|
||||||
from esphome.core import coroutine_with_priority
|
from esphome.core import CORE, coroutine_with_priority
|
||||||
|
|
||||||
DEPENDENCIES = ["network"]
|
DEPENDENCIES = ["network"]
|
||||||
AUTO_LOAD = ["socket"]
|
AUTO_LOAD = ["socket"]
|
||||||
@ -313,3 +313,13 @@ async def homeassistant_tag_scanned_to_code(config, action_id, template_arg, arg
|
|||||||
@automation.register_condition("api.connected", APIConnectedCondition, {})
|
@automation.register_condition("api.connected", APIConnectedCondition, {})
|
||||||
async def api_connected_to_code(config, condition_id, template_arg, args):
|
async def api_connected_to_code(config, condition_id, template_arg, args):
|
||||||
return cg.new_Pvariable(condition_id, template_arg)
|
return cg.new_Pvariable(condition_id, template_arg)
|
||||||
|
|
||||||
|
|
||||||
|
def FILTER_SOURCE_FILES() -> list[str]:
|
||||||
|
"""Filter out api_pb2_dump.cpp when proto message dumping is not enabled."""
|
||||||
|
# api_pb2_dump.cpp is only needed when HAS_PROTO_MESSAGE_DUMP is defined
|
||||||
|
# Check if HAS_PROTO_MESSAGE_DUMP is defined
|
||||||
|
if "HAS_PROTO_MESSAGE_DUMP" not in CORE.defines:
|
||||||
|
return ["api_pb2_dump.cpp"]
|
||||||
|
|
||||||
|
return []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user