Update mitsubishi.cpp (#6909)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
ttaborda 2024-07-11 05:26:37 +01:00 committed by GitHub
parent 6e624ff797
commit 5ac875545f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,6 +52,7 @@ const uint8_t MITSUBISHI_BYTE16 = 0X00;
climate::ClimateTraits MitsubishiClimate::traits() { climate::ClimateTraits MitsubishiClimate::traits() {
auto traits = climate::ClimateTraits(); auto traits = climate::ClimateTraits();
traits.set_supports_current_temperature(this->sensor_ != nullptr);
traits.set_supports_action(false); traits.set_supports_action(false);
traits.set_visual_min_temperature(MITSUBISHI_TEMP_MIN); traits.set_visual_min_temperature(MITSUBISHI_TEMP_MIN);
traits.set_visual_max_temperature(MITSUBISHI_TEMP_MAX); traits.set_visual_max_temperature(MITSUBISHI_TEMP_MAX);