mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
Refactore ppd42x.py
This commit is contained in:
parent
8df4ff6484
commit
4eb6a7d4cf
@ -37,7 +37,8 @@ def validate_PPD42X_sensors(value):
|
||||
|
||||
PPD42X_SENSOR_SCHEMA = sensor.SENSOR_SCHEMA.extend({
|
||||
cv.GenerateID(): cv.declare_variable_id(PPD42XSensor),
|
||||
vol.Required(CONF_PIN): pins.gpio_input_pin_schema
|
||||
vol.Required(CONF_NAME): cv.string,
|
||||
vol.Required(CONF_PIN): pins.gpio_input_pin_schema,
|
||||
})
|
||||
|
||||
PLATFORM_SCHEMA = cv.nameable(sensor.PLATFORM_SCHEMA.extend({
|
||||
|
Loading…
x
Reference in New Issue
Block a user