1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Packages feature (#1052)

* Started to work on packages feature

* Added some more validation to packages config

* Fixed some linter warnings

* Updated tests

* Reordered consts to avoid linter error

* Reordered consts to avoid linter error

* Refactored test yaml files to integrate into existing test pipeline

Co-authored-by: Dmitry Berezovsky <dmitry.berezovsky@logicify.com>
This commit is contained in:
Dmitry Berezovsky
2020-07-13 17:45:06 +03:00
committed by GitHub
parent 582ac4ac81
commit e6f42fa6f0
10 changed files with 85 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
substitutions:
devicename: test1
esphome:
name: test1
platform: ESP32
@@ -25,6 +28,10 @@ esphome:
white: 100%
build_path: build/test1
packages:
wifi: !include test_packages/test_packages_package_wifi.yaml
pkg_test: !include test_packages/test_packages_package1.yaml
wifi:
networks:
- ssid: 'MySSID'

View File

@@ -0,0 +1,2 @@
sensor:
- <<: !include ./test_uptime_sensor.yaml

View File

@@ -0,0 +1,4 @@
wifi:
networks:
- ssid: 'WiFiFromPackage'
password: 'password1'

View File

@@ -0,0 +1,5 @@
# Uptime sensor.
platform: uptime
id: ${devicename}_uptime_pcg
name: Uptime From Package
update_interval: 5min