From aedba0898fd2d2e35393dda2ec60073b0e724b8d Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Fri, 12 Jul 2024 20:01:42 +0200 Subject: [PATCH] fix host component test --- esphome/components/time/__init__.py | 2 +- esphome/config_validation.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/esphome/components/time/__init__.py b/esphome/components/time/__init__.py index dff646ecbd..d7e7da98b9 100644 --- a/esphome/components/time/__init__.py +++ b/esphome/components/time/__init__.py @@ -271,7 +271,7 @@ def validate_tz(value: str) -> str: TIME_SCHEMA = cv.Schema( { cv.Optional(CONF_TIMEZONE, default=detect_tz): cv.All( - cv.only_with_arduino_or_esp_idf, + cv.only_with_framework(["arduino", "esp-idf", "host"]), validate_tz, ), cv.Optional(CONF_ON_TIME): automation.validate_automation( diff --git a/esphome/config_validation.py b/esphome/config_validation.py index 6318d822d8..b3a9a3a078 100644 --- a/esphome/config_validation.py +++ b/esphome/config_validation.py @@ -609,7 +609,6 @@ only_on_nrf52 = only_on(PLATFORM_NRF52) only_with_arduino = only_with_framework("arduino") only_with_esp_idf = only_with_framework("esp-idf") only_with_zephyr = only_with_framework("zephyr") -only_with_arduino_or_esp_idf = only_with_framework(["arduino", "esp-idf"]) # Adapted from: