1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-15 07:08:20 +00:00

syntax error---

This commit is contained in:
pi4homez 2019-04-07 11:00:01 +02:00
parent 86deb4397f
commit 1905df165a

View File

@ -30,6 +30,7 @@ SENSORS_TO_TYPE = {
CONF_PM_10_0: [CONF_PPD42, CONF_PPD42NJ, CONF_PPD42NS], CONF_PM_10_0: [CONF_PPD42, CONF_PPD42NJ, CONF_PPD42NS],
} }
def validate_ppd42x_sensors(value): def validate_ppd42x_sensors(value):
for key, types in SENSORS_TO_TYPE.items(): for key, types in SENSORS_TO_TYPE.items():
if key in value and value[CONF_TYPE] not in types: if key in value and value[CONF_TYPE] not in types: