Adjust some units (#852)

* Adjust some units

Fixes https://github.com/esphome/issues/issues/843

* Lint
This commit is contained in:
Otto Winter
2019-11-12 19:04:39 +01:00
parent 7c0d777173
commit a5b49dbfa6
4 changed files with 9 additions and 7 deletions
+3 -1
View File
@@ -520,7 +520,7 @@ UNIT_DEGREE_PER_SECOND = u'°/s'
UNIT_DEGREES = u'°'
UNIT_EMPTY = ''
UNIT_HECTOPASCAL = 'hPa'
UNIT_HZ = 'hz'
UNIT_HERTZ = 'hz'
UNIT_KELVIN = 'K'
UNIT_KILOMETER = 'km'
UNIT_KILOMETER_PER_HOUR = 'km/h'
@@ -538,6 +538,8 @@ UNIT_PULSES_PER_MINUTE = 'pulses/min'
UNIT_SECOND = 's'
UNIT_STEPS = 'steps'
UNIT_VOLT = 'V'
UNIT_VOLT_AMPS = 'VA'
UNIT_VOLT_AMPS_REACTIVE = 'VAR'
UNIT_WATT = 'W'
DEVICE_CLASS_CONNECTIVITY = 'connectivity'