Add and use length millimeters constant (#40116)

* Add and use length millimeters constant

* Fix pylint error

* Fix broken accuweather sensor test
This commit is contained in:
springstan authored and GitHub committed 2020-09-22 21:09:17 -05:00
1 parent 511ea09c99
commit 06a133c3e9
17 files changed
+98 -57

No files matched your search

+2 -1
View File
@@ -21,6 +21,7 @@ from homeassistant.const import (
CONF_NAME,
LENGTH_KILOMETERS,
LENGTH_METERS,
LENGTH_MILLIMETERS,
PERCENTAGE,
PRESSURE_MBAR,
SPEED_KILOMETERS_PER_HOUR,
@@ -71,7 +72,7 @@ SENSOR_TYPES = {
"press_qnh": ["Pressure qnh", "qnh"],
"press_msl": ["Pressure msl", "msl"],
"press_tend": ["Pressure Tend", None],
"rain_trace": ["Rain Today", "mm"],
"rain_trace": ["Rain Today", LENGTH_MILLIMETERS],
"rel_hum": ["Relative Humidity", PERCENTAGE],
"sea_state": ["Sea State", None],
"swell_dir_worded": ["Swell Direction", None],