Removes circular dependency error

This commit is contained in:
Jean-Marc Collin
2023-11-18 17:10:06 +00:00
parent cf64109232
commit 41ae572875

View File

@@ -109,8 +109,6 @@ from .const import (
PRESET_AC_SUFFIX,
)
from .commons import get_tz
from .underlyings import UnderlyingEntity
from .prop_algorithm import PropAlgorithm
@@ -120,6 +118,12 @@ from .ema import EstimatedMobileAverage
_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):
"""Representation of a base class for all Versatile Thermostat device."""