1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-17 15:26:01 +00:00

Refactore ppd42x.py

This commit is contained in:
pi4homez
2019-04-06 17:57:35 +02:00
parent befefbc632
commit a95e3d11ed
2 changed files with 15 additions and 17 deletions

View File

@@ -505,12 +505,8 @@ sensor:
- platform: ppd42x
id: my_office_ppd42
type: PPD42
pm_2_5:
pin: GPIO32
name: "ppd42 PM2.5"
pm_10_0:
pin: GPIO35
name: "ppd42 PM10.0"
pin_2_5: GPIO32
pin_10_0: GPIO35
update_interval: 5min
timeout: 30000us # default value