1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 05:12:21 +01:00

scd30: Allow setting ambient pressure compensation (#1365)

This commit is contained in:
Michel Marti
2020-11-15 19:03:08 +01:00
committed by GitHub
parent b493d5bba5
commit f2d218e5ad
5 changed files with 13 additions and 1 deletions

View File

@@ -622,6 +622,7 @@ _temperature_c = float_with_unit("temperature", "(°C|° C|°|C)?")
_temperature_k = float_with_unit("temperature", "(° K|° K|K)?")
_temperature_f = float_with_unit("temperature", "(°F|° F|F)?")
decibel = float_with_unit("decibel", "(dB|dBm|db|dbm)", optional_unit=True)
pressure = float_with_unit("pressure", "(bar|Bar)", optional_unit=True)
def temperature(value):