From fdd54d74a3ac8893fec8719760698dd3554cb16f Mon Sep 17 00:00:00 2001 From: Samuel Sieb Date: Sun, 7 Jan 2024 19:39:53 -0800 Subject: [PATCH] Don't crash with invalid adc pin (#6059) * Don't crash with invalid adc pin * lint --- esphome/components/adc/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/esphome/components/adc/__init__.py b/esphome/components/adc/__init__.py index 952fbdd9b9..87d769fec2 100644 --- a/esphome/components/adc/__init__.py +++ b/esphome/components/adc/__init__.py @@ -139,6 +139,9 @@ ESP32_VARIANT_ADC2_PIN_TO_CHANNEL = { VARIANT_ESP32C3: { 5: adc2_channel_t.ADC2_CHANNEL_0, }, + VARIANT_ESP32C2: {}, + VARIANT_ESP32C6: {}, + VARIANT_ESP32H2: {}, }