From 427a92331e7ece3fc5bd449c3da42f8100b06df1 Mon Sep 17 00:00:00 2001 From: alexmaurer-madis Date: Mon, 22 Nov 2021 09:21:39 +0100 Subject: [PATCH] Remove deprecated set_supports_heat_cool_mode from custom climate (#1644) --- components/climate/custom.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/climate/custom.rst b/components/climate/custom.rst index 40d3102e8..3079c8b50 100644 --- a/components/climate/custom.rst +++ b/components/climate/custom.rst @@ -46,7 +46,7 @@ two methods (:apiclass:`Climate `): // The capabilities of the climate device auto traits = climate::ClimateTraits(); traits.set_supports_current_temperature(true); - traits.set_supports_heat_cool_mode(true); + traits.set_supported_modes({climate::CLIMATE_MODE_HEAT_COOL}); return traits; } };