From 17cf4697768a72db33db8d1c877ea2e4886b0f65 Mon Sep 17 00:00:00 2001 From: Thierry DUVERNOY Date: Sun, 26 Jan 2025 17:47:13 +0100 Subject: [PATCH] pylint correction --- esphome/components/dallas_pio/dallas_pio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/dallas_pio/dallas_pio.py b/esphome/components/dallas_pio/dallas_pio.py index 18a35ce26b..333237ae14 100644 --- a/esphome/components/dallas_pio/dallas_pio.py +++ b/esphome/components/dallas_pio/dallas_pio.py @@ -18,7 +18,7 @@ def validate_pin(value, reference=""): reference = reference.upper() if reference in ["DS2413", "DS2406"]: return cv.one_of("PIOA", "PIOB", upper=True)(value) - elif reference == "DS2408": + if reference == "DS2408": return cv.one_of("P0", "P1", "P2", "P3", "P4", "P5", "P6", "P7", upper=True)( value )