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

+1 -3
View File
@@ -9,14 +9,12 @@ import voluptuous as vol
from homeassistant.components import rpi_gpio
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_NAME
from homeassistant.const import CONF_NAME, LENGTH_MILLIMETERS
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
_LOGGER = logging.getLogger(__name__)
LENGTH_MILLIMETERS = "mm"
CONF_I2C_ADDRESS = "i2c_address"
CONF_I2C_BUS = "i2c_bus"
CONF_XSHUT = "xshut"