mirror of
https://github.com/esphome/esphome.git
synced 2026-05-29 06:27:24 +08:00
Add binary sensors on interrupt-enabled hubs to exercise pin_mode path
This commit is contained in:
@@ -13,6 +13,12 @@ binary_sensor:
|
|||||||
mcp23xxx: mcp23008_hub
|
mcp23xxx: mcp23008_hub
|
||||||
number: 0
|
number: 0
|
||||||
mode: INPUT
|
mode: INPUT
|
||||||
|
- platform: gpio
|
||||||
|
id: mcp23008_binary_sensor_int
|
||||||
|
pin:
|
||||||
|
mcp23xxx: mcp23008_hub_int
|
||||||
|
number: 0
|
||||||
|
mode: INPUT
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
|
|||||||
@@ -13,6 +13,12 @@ binary_sensor:
|
|||||||
mcp23xxx: mcp23017_hub
|
mcp23xxx: mcp23017_hub
|
||||||
number: 0
|
number: 0
|
||||||
mode: INPUT
|
mode: INPUT
|
||||||
|
- platform: gpio
|
||||||
|
id: mcp23017_binary_sensor_int
|
||||||
|
pin:
|
||||||
|
mcp23xxx: mcp23017_hub_int
|
||||||
|
number: 0
|
||||||
|
mode: INPUT
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
|
|||||||
@@ -20,3 +20,8 @@ binary_sensor:
|
|||||||
pin:
|
pin:
|
||||||
pi4ioe5v6408: pi4ioe1
|
pi4ioe5v6408: pi4ioe1
|
||||||
number: 1
|
number: 1
|
||||||
|
- platform: gpio
|
||||||
|
id: sensor1_int
|
||||||
|
pin:
|
||||||
|
pi4ioe5v6408: pi4ioe1_int
|
||||||
|
number: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user