From 15c1c42d4676eef6e6f0d0967886f8b647a8fba3 Mon Sep 17 00:00:00 2001 From: Thierry DUVERNOY Date: Fri, 17 Jan 2025 14:21:52 +0100 Subject: [PATCH] Correction of error Option 'crc' is not supported for this reference for DS2413 --- 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 dd0a90f5c4..5952fbea1a 100644 --- a/esphome/components/dallas_pio/dallas_pio.py +++ b/esphome/components/dallas_pio/dallas_pio.py @@ -17,7 +17,7 @@ CONF_CRC = "crc" def validate_crc_option(config_list): for conf in config_list: reference = conf.get("reference", "").upper() - if not reference: # Si 'reference' n'est pas défini, on passe + if not reference or reference == "DS2413": continue if reference == "DS2406" and "crc" not in conf: raise cv.Invalid("Option 'crc' is required when 'reference' is DS2406.")