Skip to content

Commit

Permalink
Fix pressure units #16
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Sep 11, 2020
1 parent 960c064 commit 79c3294
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/xiaomi_gateway3/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
UNITS = {
DEVICE_CLASS_TEMPERATURE: TEMP_CELSIUS,
DEVICE_CLASS_HUMIDITY: '%',
DEVICE_CLASS_PRESSURE: 'hPa',
DEVICE_CLASS_ILLUMINANCE: 'lm',
DEVICE_CLASS_POWER: POWER_WATT,
'consumption': ENERGY_WATT_HOUR
Expand Down

0 comments on commit 79c3294

Please sign in to comment.