mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Sort imports according to PEP8 for 'homeassistant' folder (#29789)
Components are already done
This commit is contained in:
committed by
Franck Nijhof
parent
29ec17d50d
commit
67c56c860d
@@ -1,35 +1,37 @@
|
||||
"""Unit system helper class and methods."""
|
||||
|
||||
import logging
|
||||
from typing import Optional
|
||||
from numbers import Number
|
||||
from typing import Optional
|
||||
|
||||
from homeassistant.const import (
|
||||
TEMP_CELSIUS,
|
||||
TEMP_FAHRENHEIT,
|
||||
LENGTH_MILES,
|
||||
CONF_UNIT_SYSTEM_IMPERIAL,
|
||||
CONF_UNIT_SYSTEM_METRIC,
|
||||
LENGTH,
|
||||
LENGTH_KILOMETERS,
|
||||
PRESSURE_PA,
|
||||
PRESSURE_PSI,
|
||||
VOLUME_LITERS,
|
||||
VOLUME_GALLONS,
|
||||
LENGTH_MILES,
|
||||
MASS,
|
||||
MASS_GRAMS,
|
||||
MASS_KILOGRAMS,
|
||||
MASS_OUNCES,
|
||||
MASS_POUNDS,
|
||||
CONF_UNIT_SYSTEM_METRIC,
|
||||
CONF_UNIT_SYSTEM_IMPERIAL,
|
||||
LENGTH,
|
||||
MASS,
|
||||
PRESSURE,
|
||||
VOLUME,
|
||||
PRESSURE_PA,
|
||||
PRESSURE_PSI,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_FAHRENHEIT,
|
||||
TEMPERATURE,
|
||||
UNIT_NOT_RECOGNIZED_TEMPLATE,
|
||||
VOLUME,
|
||||
VOLUME_GALLONS,
|
||||
VOLUME_LITERS,
|
||||
)
|
||||
from homeassistant.util import (
|
||||
distance as distance_util,
|
||||
pressure as pressure_util,
|
||||
temperature as temperature_util,
|
||||
volume as volume_util,
|
||||
)
|
||||
from homeassistant.util import temperature as temperature_util
|
||||
from homeassistant.util import distance as distance_util
|
||||
from homeassistant.util import pressure as pressure_util
|
||||
from homeassistant.util import volume as volume_util
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user