Remove deprecated set_supports_heat_cool_mode from custom climate (#1644)

This commit is contained in:
alexmaurer-madis 2021-11-22 09:21:39 +01:00 committed by GitHub
parent 20b9f5846e
commit 427a92331e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }
}; };