Skip to content

Commit

Permalink
Add climate turn on/off feature to Teslemetry (#109241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 authored and frenck committed Feb 1, 2024
1 parent 50dfe4d commit 647ac10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion homeassistant/components/teslemetry/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ class TeslemetryClimateEntity(TeslemetryVehicleEntity, ClimateEntity):
_attr_temperature_unit = UnitOfTemperature.CELSIUS
_attr_hvac_modes = [HVACMode.HEAT_COOL, HVACMode.OFF]
_attr_supported_features = (
ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.PRESET_MODE
ClimateEntityFeature.TURN_ON
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TARGET_TEMPERATURE
| ClimateEntityFeature.PRESET_MODE
)
_attr_preset_modes = ["off", "keep", "dog", "camp"]

Expand Down

0 comments on commit 647ac10

Please sign in to comment.