Skip to content

Commit

Permalink
Tests for host platform added
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavlo Dudnytskyi committed Jul 17, 2024
1 parent d6d5880 commit 2e26404
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
- tests/esp8266-simple-hon.yaml
- tests/libretiny-hon.yaml
- tests/libretiny-smartair2.yaml
- tests/host-simple-hon.yaml
- tests/host-simple-smartair2.yaml
steps:
- name: Checkout code
uses: actions/[email protected]
Expand Down
9 changes: 1 addition & 8 deletions tests/esp8266-simple-hon.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
substitutions:
device_name: "Haier AC"
device_id: "haier_climate"
uart_id: "ac_port"
send_wifi: "true"

esphome:
name: esp8266-smartair2-wifi
name: esp8266-hon-wifi

esp8266:
board: esp01_1m
Expand All @@ -14,7 +8,6 @@ uart:
baud_rate: 9600
tx_pin: 1
rx_pin: 3
id: ${uart_id}

logger:
level: DEBUG
Expand Down
7 changes: 0 additions & 7 deletions tests/esp8266-simple-smartair2.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
substitutions:
device_name: "Haier AC"
device_id: "haier_climate"
uart_id: "ac_port"
send_wifi: "true"

esphome:
name: esp8266-smartair2-wifi

Expand All @@ -14,7 +8,6 @@ uart:
baud_rate: 9600
tx_pin: 1
rx_pin: 3
id: ${uart_id}

logger:
level: DEBUG
Expand Down
16 changes: 16 additions & 0 deletions tests/host-simple-hon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
esphome:
name: host-simple-hon

host:

uart:
baud_rate: 9600
port: /dev/ttyUSB0

logger:
level: DEBUG
baud_rate: 0

packages:
local_haier: !include .local-haier.yaml
haier_base: !include .simple-hon.yaml
16 changes: 16 additions & 0 deletions tests/host-simple-smartair2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
esphome:
name: host-simple-smartair2

host:

uart:
baud_rate: 9600
port: /dev/ttyUSB0

logger:
level: DEBUG
baud_rate: 0

packages:
local_haier: !include .local-haier.yaml
haier_base: !include .simple-smartair2.yaml

0 comments on commit 2e26404

Please sign in to comment.