mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
Remove deprecated set_supports_heat_cool_mode from custom climate (#1644)
This commit is contained in:
parent
20b9f5846e
commit
427a92331e
@ -46,7 +46,7 @@ two methods (:apiclass:`Climate <climate::Climate>`):
|
|||||||
// The capabilities of the climate device
|
// The capabilities of the climate device
|
||||||
auto traits = climate::ClimateTraits();
|
auto traits = climate::ClimateTraits();
|
||||||
traits.set_supports_current_temperature(true);
|
traits.set_supports_current_temperature(true);
|
||||||
traits.set_supports_heat_cool_mode(true);
|
traits.set_supported_modes({climate::CLIMATE_MODE_HEAT_COOL});
|
||||||
return traits;
|
return traits;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user