From a07a835eb0f075a6166ec6c7629fd7c62985ffe8 Mon Sep 17 00:00:00 2001 From: Anders Persson Date: Wed, 8 May 2019 10:56:52 +0200 Subject: [PATCH] Custom tests (#529) * Add tests for custom components * Add more tests --- tests/test3.yaml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/tests/test3.yaml b/tests/test3.yaml index c6eab19440..3e61e78acf 100644 --- a/tests/test3.yaml +++ b/tests/test3.yaml @@ -122,6 +122,13 @@ sensor: name: Color Temperature integration_time: 700ms gain: 60x + - platform: custom + lambda: |- + auto s = new sensor::Sensor(); + return {s}; + sensors: + - id: custom_sensor + name: Custom Sensor time: - platform: homeassistant @@ -129,7 +136,7 @@ time: apds9960: address: 0x20 update_interval: 60s - + mpr121: id: mpr121_first address: 0x5A @@ -178,6 +185,13 @@ binary_sensor: - platform: ttp229_lsf channel: 1 name: TTP229 LSF Test + - platform: custom + lambda: |- + auto s = new binary_sensor::BinarySensor(); + return {s}; + sensors: + - id: custom_binary_sensor + name: Custom Binary Sensor remote_receiver: pin: GPIO12 @@ -233,6 +247,13 @@ switch: id: gpio_switch2 pin: GPIO1 interlock: *interlock + - platform: custom + lambda: |- + auto s = new switch::Switch(); + return {s}; + sensors: + - id: custom_switch + name: Custom Switch stepper: - platform: uln2003