From 58dc8445f934c5666060ab56089bbd05716e8e37 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Mon, 22 Jul 2024 13:03:04 +0200 Subject: [PATCH] fix review comments --- esphome/components/nrf52/gpio.py | 2 +- esphome/config_validation.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/nrf52/gpio.py b/esphome/components/nrf52/gpio.py index b6325e1220..e1e8449d36 100644 --- a/esphome/components/nrf52/gpio.py +++ b/esphome/components/nrf52/gpio.py @@ -44,7 +44,7 @@ def validate_gpio_pin(value): NRF52_PIN_SCHEMA = cv.All( pins.gpio_base_schema( - GPIOPin, + ZephyrGPIOPin, validate_gpio_pin, modes=pins.GPIO_STANDARD_MODES, ), diff --git a/esphome/config_validation.py b/esphome/config_validation.py index ee90a3670b..352e00f917 100644 --- a/esphome/config_validation.py +++ b/esphome/config_validation.py @@ -604,8 +604,8 @@ def only_with_framework(frameworks): only_on_esp32 = only_on(PLATFORM_ESP32) only_on_esp8266 = only_on(PLATFORM_ESP8266) -only_on_rp2040 = only_on(PLATFORM_RP2040) only_on_nrf52 = only_on(PLATFORM_NRF52) +only_on_rp2040 = only_on(PLATFORM_RP2040) only_with_arduino = only_with_framework("arduino") only_with_esp_idf = only_with_framework("esp-idf") only_with_zephyr = only_with_framework("zephyr")