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:
parent
59214309b8
commit
a6bd4ad926
|
|
@ -10,7 +10,7 @@ esphome:
|
||||||
|
|
||||||
project:
|
project:
|
||||||
name: "ajfriesen.pc-switch"
|
name: "ajfriesen.pc-switch"
|
||||||
version: "1.0.0"
|
version: "1.0.1"
|
||||||
|
|
||||||
# Enable logging
|
# Enable logging
|
||||||
logger:
|
logger:
|
||||||
|
|
@ -38,7 +38,9 @@ captive_portal:
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
pin: D6
|
pin:
|
||||||
|
number: D6
|
||||||
|
allow_other_uses: true
|
||||||
id: power_switch
|
id: power_switch
|
||||||
internal: true
|
internal: true
|
||||||
on_turn_on:
|
on_turn_on:
|
||||||
|
|
@ -46,7 +48,9 @@ switch:
|
||||||
- switch.turn_off: power_switch
|
- switch.turn_off: power_switch
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
pin: D6
|
pin:
|
||||||
|
number: D6
|
||||||
|
allow_other_uses: true
|
||||||
id: power_switch_force
|
id: power_switch_force
|
||||||
internal: true
|
internal: true
|
||||||
on_turn_on:
|
on_turn_on:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue