mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Move climate feature flags to child classes for airzone_cloud (#109515)
This commit is contained in:
parent
6c41540ad8
commit
9fbf00bdd3
@ -144,11 +144,6 @@ class AirzoneClimate(AirzoneEntity, ClimateEntity):
|
|||||||
"""Define an Airzone Cloud climate."""
|
"""Define an Airzone Cloud climate."""
|
||||||
|
|
||||||
_attr_name = None
|
_attr_name = None
|
||||||
_attr_supported_features = (
|
|
||||||
ClimateEntityFeature.TARGET_TEMPERATURE
|
|
||||||
| ClimateEntityFeature.TURN_OFF
|
|
||||||
| ClimateEntityFeature.TURN_ON
|
|
||||||
)
|
|
||||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||||
_enable_turn_on_off_backwards_compatibility = False
|
_enable_turn_on_off_backwards_compatibility = False
|
||||||
|
|
||||||
@ -180,6 +175,12 @@ class AirzoneClimate(AirzoneEntity, ClimateEntity):
|
|||||||
class AirzoneDeviceClimate(AirzoneClimate):
|
class AirzoneDeviceClimate(AirzoneClimate):
|
||||||
"""Define an Airzone Cloud Device base class."""
|
"""Define an Airzone Cloud Device base class."""
|
||||||
|
|
||||||
|
_attr_supported_features = (
|
||||||
|
ClimateEntityFeature.TARGET_TEMPERATURE
|
||||||
|
| ClimateEntityFeature.TURN_OFF
|
||||||
|
| ClimateEntityFeature.TURN_ON
|
||||||
|
)
|
||||||
|
|
||||||
async def async_turn_on(self) -> None:
|
async def async_turn_on(self) -> None:
|
||||||
"""Turn the entity on."""
|
"""Turn the entity on."""
|
||||||
params = {
|
params = {
|
||||||
@ -217,6 +218,12 @@ class AirzoneDeviceClimate(AirzoneClimate):
|
|||||||
class AirzoneDeviceGroupClimate(AirzoneClimate):
|
class AirzoneDeviceGroupClimate(AirzoneClimate):
|
||||||
"""Define an Airzone Cloud DeviceGroup base class."""
|
"""Define an Airzone Cloud DeviceGroup base class."""
|
||||||
|
|
||||||
|
_attr_supported_features = (
|
||||||
|
ClimateEntityFeature.TARGET_TEMPERATURE
|
||||||
|
| ClimateEntityFeature.TURN_OFF
|
||||||
|
| ClimateEntityFeature.TURN_ON
|
||||||
|
)
|
||||||
|
|
||||||
async def async_turn_on(self) -> None:
|
async def async_turn_on(self) -> None:
|
||||||
"""Turn the entity on."""
|
"""Turn the entity on."""
|
||||||
params = {
|
params = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user