From d862ae542728a2897b3d82083749037d944a57b0 Mon Sep 17 00:00:00 2001 From: Pavlo Dudnytskyi Date: Wed, 17 Jul 2024 18:53:07 +0200 Subject: [PATCH] Sample configs updated --- .haier-hon-base.yaml | 5 ----- .haier-smartair2-base.yaml | 5 ----- esp32-c3.yaml | 5 +++++ esp32-haier-module.yaml | 5 +++++ rpipico.yaml | 5 +++++ smartair2-esp8266.yaml | 5 +++++ tests/run_tests.bat | 32 ++++++++++++++++++++++++++------ wemos_d1_mini.yaml | 5 +++++ 8 files changed, 51 insertions(+), 16 deletions(-) diff --git a/.haier-hon-base.yaml b/.haier-hon-base.yaml index fcdfac4..502aa7f 100644 --- a/.haier-hon-base.yaml +++ b/.haier-hon-base.yaml @@ -1,8 +1,3 @@ -api: - -ota: - - platform: esphome - packages: hon_climate: !include configs/climate/haier_hon.yaml turn_on_service: !include configs/api/service.turn_on.yaml diff --git a/.haier-smartair2-base.yaml b/.haier-smartair2-base.yaml index c50530b..b852daa 100644 --- a/.haier-smartair2-base.yaml +++ b/.haier-smartair2-base.yaml @@ -1,8 +1,3 @@ -api: - -ota: - - platform: esphome - packages: smartair2_climate: !include configs/climate/haier_smartair2.yaml turn_on_service: !include configs/api/service.turn_on.yaml diff --git a/esp32-c3.yaml b/esp32-c3.yaml index 598cc57..7e32dc9 100644 --- a/esp32-c3.yaml +++ b/esp32-c3.yaml @@ -29,6 +29,11 @@ uart: logger: level: DEBUG +api: + +ota: + - platform: esphome + packages: local_haier: !include configs/external_components/local_haier.yaml haier_base: !include .haier-hon-base.yaml diff --git a/esp32-haier-module.yaml b/esp32-haier-module.yaml index 597a4f1..1ce3323 100644 --- a/esp32-haier-module.yaml +++ b/esp32-haier-module.yaml @@ -28,6 +28,11 @@ uart: logger: level: DEBUG +api: + +ota: + - platform: esphome + packages: local_haier: !include configs/external_components/local_haier.yaml haier_base: !include .haier-hon-base.yaml diff --git a/rpipico.yaml b/rpipico.yaml index f719e05..a6b37a1 100644 --- a/rpipico.yaml +++ b/rpipico.yaml @@ -26,6 +26,11 @@ uart: tx_pin: GPIO0 rx_pin: GPIO1 +api: + +ota: + - platform: esphome + packages: local_haier: !include configs/external_components/local_haier.yaml haier_base: !include .haier-hon-base.yaml diff --git a/smartair2-esp8266.yaml b/smartair2-esp8266.yaml index 616b803..e1e79bd 100644 --- a/smartair2-esp8266.yaml +++ b/smartair2-esp8266.yaml @@ -27,6 +27,11 @@ logger: web_server: +api: + +ota: + - platform: esphome + packages: local_haier: !include configs/external_components/local_haier.yaml haier_base: !include .haier-smartair2-base.yaml diff --git a/tests/run_tests.bat b/tests/run_tests.bat index 74fcdbf..efee456 100644 --- a/tests/run_tests.bat +++ b/tests/run_tests.bat @@ -6,21 +6,41 @@ for %%G in ( *.yaml ) do ( goto :eof ) ) +set "configs_list=%configs_list:~1%" +set items_cout=0 +for %%i in (%configs_list%) do set /a cnt+=1 if /i "%1"=="show" ( - echo List of tests %configs_list% + echo List of tests: + echo ---------------------------------------------------- + for %%i in (%configs_list%) do ( + echo %%i + ) + echo ---------------------------------------------------- + echo Total: %cnt% items goto :eof ) -if /i "%1"=="wsl" ( - wsl --cd "%cd%" /bin/sh -c "~/.local/bin/esphome compile %configs_list%" -) else ( - esphome compile %configs_list% +for %%i in (%configs_list%) do ( + echo ---------------------------------------------------- + echo Compiling: %%i + echo ---------------------------------------------------- + if /i "%1"=="wsl" ( + wsl -e sh -lc "esphome compile %%i" + ) else ( + esphome compile %%i + ) + if %ERRORLEVEL% NEQ 0 ( + echo ---------------------------------------------------- + echo Failed to build: %%i + echo ---------------------------------------------------- + goto :eof + ) ) goto :eof :append_config_file_name set config_file=%1 if "%config_file:~0,1%" NEQ "." ( - set "configs_list=%configs_list% %config_file%" + set "configs_list=%configs_list%,%config_file%" ) else ( echo Skipping %config_file% ) diff --git a/wemos_d1_mini.yaml b/wemos_d1_mini.yaml index 431f374..e535aaf 100644 --- a/wemos_d1_mini.yaml +++ b/wemos_d1_mini.yaml @@ -28,6 +28,11 @@ logger: web_server: +api: + +ota: + - platform: esphome + packages: local_haier: !include configs/external_components/local_haier.yaml haier_base: !include .haier-hon-base.yaml