Update for new esphome version

The new version introduced the `allow_other_uses: true` flag if you use a pin twice.
This needs to be set.
This commit is contained in:
Andrej Friesen 2024-01-11 09:10:30 +01:00 committed by GitHub
parent 59214309b8
commit a6bd4ad926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -10,7 +10,7 @@ esphome:
project:
name: "ajfriesen.pc-switch"
version: "1.0.0"
version: "1.0.1"
# Enable logging
logger:
@ -38,7 +38,9 @@ captive_portal:
switch:
- platform: gpio
pin: D6
pin:
number: D6
allow_other_uses: true
id: power_switch
internal: true
on_turn_on:
@ -46,7 +48,9 @@ switch:
- switch.turn_off: power_switch
- platform: gpio
pin: D6
pin:
number: D6
allow_other_uses: true
id: power_switch_force
internal: true
on_turn_on: