mirror of
https://github.com/esphome/esphome.git
synced 2026-10-21 21:36:14 +00:00
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> Co-authored-by: J. Nick Koston <nick@home-assistant.io> Co-authored-by: J. Nick Koston <nick@koston.org>
14 lines
529 B
Python
14 lines
529 B
Python
import esphome.codegen as cg
|
|
from esphome.types import ConfigType
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
# No host camera platform emits USE_CAMERA, and the real to_code needs a configured server.
|
|
async def to_code_testing(config: ConfigType) -> None:
|
|
cg.add_define("USE_CAMERA")
|
|
cg.add_define("MAX_RTSP_CONNECTIONS", 1)
|
|
cg.add_define("USE_SOCKET_IMPL_BSD_SOCKETS")
|
|
|
|
manifest.to_code = to_code_testing
|