From a6bd4ad926462eaca43f2822783e3bb0ba2ee054 Mon Sep 17 00:00:00 2001 From: Andrej Friesen Date: Thu, 11 Jan 2024 09:10:30 +0100 Subject: [PATCH] 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. --- pc-switch.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pc-switch.yaml b/pc-switch.yaml index 4ba1b1d..9e5900d 100644 --- a/pc-switch.yaml +++ b/pc-switch.yaml @@ -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: