Removes circular dependency error
This commit is contained in:
@@ -109,8 +109,6 @@ from .const import (
|
|||||||
PRESET_AC_SUFFIX,
|
PRESET_AC_SUFFIX,
|
||||||
)
|
)
|
||||||
|
|
||||||
from .commons import get_tz
|
|
||||||
|
|
||||||
from .underlyings import UnderlyingEntity
|
from .underlyings import UnderlyingEntity
|
||||||
|
|
||||||
from .prop_algorithm import PropAlgorithm
|
from .prop_algorithm import PropAlgorithm
|
||||||
@@ -120,6 +118,12 @@ from .ema import EstimatedMobileAverage
|
|||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
def get_tz(hass: HomeAssistant):
|
||||||
|
"""Get the current timezone"""
|
||||||
|
|
||||||
|
return dt_util.get_time_zone(hass.config.time_zone)
|
||||||
|
|
||||||
|
|
||||||
class BaseThermostat(ClimateEntity, RestoreEntity):
|
class BaseThermostat(ClimateEntity, RestoreEntity):
|
||||||
"""Representation of a base class for all Versatile Thermostat device."""
|
"""Representation of a base class for all Versatile Thermostat device."""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user