1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-13 00:32:20 +01:00

Allow validation of pins based on hub config (#5647)

This commit is contained in:
Jesse Hills
2023-11-02 15:32:00 +13:00
committed by GitHub
parent 40c001bdc2
commit 9eea52ea85
8 changed files with 72 additions and 12 deletions

View File

@@ -11,10 +11,10 @@ from esphome.const import (
CONF_PULLUP,
CONF_IGNORE_STRAPPING_WARNING,
)
from esphome.util import SimpleRegistry
from esphome.util import PinRegistry
from esphome.core import CORE
PIN_SCHEMA_REGISTRY = SimpleRegistry()
PIN_SCHEMA_REGISTRY = PinRegistry()
def _set_mode(value, default_mode):