mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
binary_sensor for switch state (#7819)
This commit is contained in:
11
tests/components/switch/common.yaml
Normal file
11
tests/components/switch/common.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
binary_sensor:
|
||||
- platform: switch
|
||||
id: some_binary_sensor
|
||||
name: "Template Switch State"
|
||||
source_id: the_switch
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: "Template Switch"
|
||||
id: the_switch
|
||||
optimistic: true
|
2
tests/components/switch/test.bk72xx-ard.yaml
Normal file
2
tests/components/switch/test.bk72xx-ard.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
packages:
|
||||
common: !include common.yaml
|
2
tests/components/switch/test.esp32-ard.yaml
Normal file
2
tests/components/switch/test.esp32-ard.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
packages:
|
||||
common: !include common.yaml
|
2
tests/components/switch/test.esp32-c3-ard.yaml
Normal file
2
tests/components/switch/test.esp32-c3-ard.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
packages:
|
||||
common: !include common.yaml
|
2
tests/components/switch/test.esp32-c3-idf.yaml
Normal file
2
tests/components/switch/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
packages:
|
||||
common: !include common.yaml
|
2
tests/components/switch/test.esp32-idf.yaml
Normal file
2
tests/components/switch/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
packages:
|
||||
common: !include common.yaml
|
2
tests/components/switch/test.esp32-s3-idf.yaml
Normal file
2
tests/components/switch/test.esp32-s3-idf.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
packages:
|
||||
common: !include common.yaml
|
2
tests/components/switch/test.esp8266-ard.yaml
Normal file
2
tests/components/switch/test.esp8266-ard.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
packages:
|
||||
common: !include common.yaml
|
2
tests/components/switch/test.rp2040-ard.yaml
Normal file
2
tests/components/switch/test.rp2040-ard.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
packages:
|
||||
common: !include common.yaml
|
Reference in New Issue
Block a user