mirror of
https://github.com/home-assistant/core.git
synced 2025-12-05 23:48:11 +00:00
Move temperature utility to unit_conversion (#78960)
This commit is contained in:
@@ -19,11 +19,12 @@ from homeassistant.const import (
|
||||
from homeassistant.core import HomeAssistant, callback, valid_entity_id
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
from homeassistant.helpers.json import JSON_DUMP
|
||||
from homeassistant.util import dt as dt_util, temperature as temperature_util
|
||||
from homeassistant.util import dt as dt_util
|
||||
from homeassistant.util.unit_conversion import (
|
||||
EnergyConverter,
|
||||
PowerConverter,
|
||||
PressureConverter,
|
||||
TemperatureConverter,
|
||||
)
|
||||
|
||||
from .const import MAX_QUEUE_BACKLOG
|
||||
@@ -123,7 +124,7 @@ async def ws_handle_get_statistics_during_period(
|
||||
vol.Optional("energy"): vol.In(EnergyConverter.VALID_UNITS),
|
||||
vol.Optional("power"): vol.In(PowerConverter.VALID_UNITS),
|
||||
vol.Optional("pressure"): vol.In(PressureConverter.VALID_UNITS),
|
||||
vol.Optional("temperature"): vol.In(temperature_util.VALID_UNITS),
|
||||
vol.Optional("temperature"): vol.In(TemperatureConverter.VALID_UNITS),
|
||||
vol.Optional("volume"): vol.Any(VOLUME_CUBIC_FEET, VOLUME_CUBIC_METERS),
|
||||
}
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user