Skip to content

Commit

Permalink
Support entity features in ClimateControl
Browse files Browse the repository at this point in the history
  • Loading branch information
tschamm committed Oct 3, 2024
1 parent c804fb0 commit 4a4017e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions custom_components/bosch_shc/climate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Platform for climate integration."""

from boschshcpy import SHCClimateControl, SHCSession
from enum import IntFlag
from homeassistant.components.climate import ClimateEntity
Expand Down Expand Up @@ -40,6 +41,13 @@ class ClimateControl(SHCEntity, ClimateEntity):
"""Representation of a SHC room climate control."""

_attr_target_temperature_step = 0.5
_attr_supported_features = (
ClimateEntityFeature.TURN_ON
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.PRESET_MODE
| ClimateEntityFeature.TARGET_TEMPERATURE
)
_enable_turn_on_off_backwards_compatibility = False

def __init__(
self,
Expand Down

0 comments on commit 4a4017e

Please sign in to comment.