diff --git a/custom_components/better_thermostat/__init__.py b/custom_components/better_thermostat/__init__.py index 026b4649..8d199824 100644 --- a/custom_components/better_thermostat/__init__.py +++ b/custom_components/better_thermostat/__init__.py @@ -1,4 +1,5 @@ """The better_thermostat component.""" + import logging from asyncio import Lock from homeassistant.const import Platform diff --git a/custom_components/better_thermostat/calibration.py b/custom_components/better_thermostat/calibration.py index 1fa047fa..4cae0e52 100644 --- a/custom_components/better_thermostat/calibration.py +++ b/custom_components/better_thermostat/calibration.py @@ -1,4 +1,5 @@ """Helper functions for the Better Thermostat component.""" + import logging from typing import Union diff --git a/custom_components/better_thermostat/climate.py b/custom_components/better_thermostat/climate.py index c588d6d8..1afbe0a0 100644 --- a/custom_components/better_thermostat/climate.py +++ b/custom_components/better_thermostat/climate.py @@ -1313,5 +1313,17 @@ def supported_features(self): Supported features. """ if self.cooler_entity_id is not None: - return ClimateEntityFeature.TARGET_TEMPERATURE_RANGE - return ClimateEntityFeature.TARGET_TEMPERATURE + return ( + ClimateEntityFeature.TARGET_TEMPERATURE_RANGE + | ClimateEntityFeature.PRESET_MODE + | ClimateEntityFeature.PRESET_MODE + | ClimateEntityFeature.TURN_OFF + | ClimateEntityFeature.TURN_ON + ) + return ( + ClimateEntityFeature.TARGET_TEMPERATURE + | ClimateEntityFeature.PRESET_MODE + | ClimateEntityFeature.PRESET_MODE + | ClimateEntityFeature.TURN_OFF + | ClimateEntityFeature.TURN_ON + ) diff --git a/custom_components/better_thermostat/diagnostics.py b/custom_components/better_thermostat/diagnostics.py index be7005bf..c6103196 100644 --- a/custom_components/better_thermostat/diagnostics.py +++ b/custom_components/better_thermostat/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Brother.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/custom_components/better_thermostat/utils/const.py b/custom_components/better_thermostat/utils/const.py index 742e00b5..bc78b70f 100644 --- a/custom_components/better_thermostat/utils/const.py +++ b/custom_components/better_thermostat/utils/const.py @@ -1,4 +1,5 @@ """""" + import os import json from enum import IntEnum diff --git a/custom_components/better_thermostat/utils/helpers.py b/custom_components/better_thermostat/utils/helpers.py index c31b7b7c..364642c7 100644 --- a/custom_components/better_thermostat/utils/helpers.py +++ b/custom_components/better_thermostat/utils/helpers.py @@ -1,4 +1,5 @@ """Helper functions for the Better Thermostat component.""" + import re import logging from datetime import datetime