[core] add const for litre per hour (#17389)

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
luar123
2026-07-07 13:44:44 +02:00
committed by GitHub
parent 3c2dad67f4
commit 40c3a4320f
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -21,6 +21,7 @@ from esphome.const import (
UNIT_EMPTY,
UNIT_KELVIN,
UNIT_KILOWATT,
UNIT_LITRE_PER_HOUR,
)
CODEOWNERS = ["@cfeenstra1024"]
@@ -37,7 +38,6 @@ CONF_TEMP2 = "temp2"
CONF_TEMP_DIFF = "temp_diff"
UNIT_GIGA_JOULE = "GJ"
UNIT_LITRE_PER_HOUR = "l/h"
# Note: The sensor units are set automatically based un the received data from the meter
CONFIG_SCHEMA = (
+1
View File
@@ -1255,6 +1255,7 @@ UNIT_KILOVOLT_AMPS_REACTIVE_HOURS = "kvarh"
UNIT_KILOWATT = "kW"
UNIT_KILOWATT_HOURS = "kWh"
UNIT_LITRE = "L"
UNIT_LITRE_PER_HOUR = "L/h"
UNIT_LITRE_PER_SECOND = "L/s"
UNIT_LUX = "lx"
UNIT_MEGAJOULE = "MJ"