Skip to content

Commit

Permalink
Sample configs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavlo Dudnytskyi committed Jul 17, 2024
1 parent 2839eb0 commit d862ae5
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 16 deletions.
5 changes: 0 additions & 5 deletions .haier-hon-base.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions .haier-smartair2-base.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions esp32-c3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions esp32-haier-module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions rpipico.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions smartair2-esp8266.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
32 changes: 26 additions & 6 deletions tests/run_tests.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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%
)
Expand Down
5 changes: 5 additions & 0 deletions wemos_d1_mini.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d862ae5

Please sign in to comment.