mirror of
https://github.com/home-assistant/core.git
synced 2026-05-24 09:20:11 +01:00
22 lines
641 B
Python
22 lines
641 B
Python
"""Constants for the Seko Pooldose integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from homeassistant.const import UnitOfTemperature, UnitOfVolume, UnitOfVolumeFlowRate
|
|
|
|
DOMAIN = "pooldose"
|
|
MANUFACTURER = "SEKO"
|
|
|
|
# Mapping of device units (upper case) to Home Assistant units
|
|
UNIT_MAPPING: dict[str, str] = {
|
|
# Temperature units
|
|
"°C": UnitOfTemperature.CELSIUS,
|
|
"°F": UnitOfTemperature.FAHRENHEIT,
|
|
# Volume flow rate units
|
|
"M3/H": UnitOfVolumeFlowRate.CUBIC_METERS_PER_HOUR,
|
|
"L/S": UnitOfVolumeFlowRate.LITERS_PER_SECOND,
|
|
# Volume units
|
|
"L": UnitOfVolume.LITERS,
|
|
"M3": UnitOfVolume.CUBIC_METERS,
|
|
}
|