1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-17 17:23:45 +01:00

Update const.py added missing millimeter (#6834)

* Update const.py added missing millimeter

Added missing millimeter

* Fixed UNIT_MILLIMETER in multiple locations.
This commit is contained in:
NonaSuomy
2024-05-31 01:13:11 -04:00
committed by GitHub
parent 8dfe1d5220
commit 2894a138e7
5 changed files with 9 additions and 10 deletions

View File

@@ -12,6 +12,7 @@ from esphome.const import (
CONF_TEMPERATURE,
DEVICE_CLASS_TEMPERATURE,
UNIT_CELSIUS,
UNIT_MILLIMETER,
STATE_CLASS_MEASUREMENT,
CONF_BATTERY_LEVEL,
DEVICE_CLASS_BATTERY,
@@ -25,8 +26,6 @@ ICON_PROPANE_TANK = "mdi:propane-tank"
TANK_TYPE_CUSTOM = "CUSTOM"
UNIT_MILLIMETER = "mm"
def small_distance(value):
"""small_distance is stored in mm"""