mirror of
https://github.com/home-assistant/core.git
synced 2025-11-26 19:18:05 +00:00
19 lines
528 B
Python
19 lines
528 B
Python
"""Constants for the Seko Pooldose integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from homeassistant.const import UnitOfTemperature, UnitOfVolumeFlowRate
|
|
|
|
DOMAIN = "pooldose"
|
|
MANUFACTURER = "SEKO"
|
|
|
|
# Mapping of device units 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,
|
|
}
|