1
0
mirror of https://github.com/esphome/esphome.git synced 2025-01-31 18:20:53 +00:00

Apply configured IIR filter setting in generated BMP280 code (#4975)

Co-authored-by: Martin Murray <murrayma@gmail.com>
This commit is contained in:
Martin Murray 2023-06-20 19:53:21 -04:00 committed by Jesse Hills
parent fc544dc389
commit 867b4719d1
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -94,3 +94,5 @@ async def to_code(config):
sens = await sensor.new_sensor(conf)
cg.add(var.set_pressure_sensor(sens))
cg.add(var.set_pressure_oversampling(conf[CONF_OVERSAMPLING]))
cg.add(var.set_iir_filter(config[CONF_IIR_FILTER]))