[mqtt.homeassistant] don't set range on current temp channel (#14858)

the min/max from the config are specifically only for the set point.
i.e. for a heater in winter when the heater is off, it may have
a set point range of 65-104°F, but if it's off for an unoccopied room
the ambient temperature might drop far below 65

Signed-off-by: Cody Cutrer <cody@cutrer.us>
This commit is contained in:
Cody Cutrer 2023-04-24 05:22:18 -06:00 committed by GitHub
parent 4d5be1f64c
commit fa57c627a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -232,9 +232,8 @@ public class Climate extends AbstractComponent<Climate.ChannelConfiguration> {
channelConfiguration.awayModeStateTopic, commandFilter); channelConfiguration.awayModeStateTopic, commandFilter);
buildOptionalChannel(CURRENT_TEMPERATURE_CH_ID, buildOptionalChannel(CURRENT_TEMPERATURE_CH_ID,
new NumberValue(channelConfiguration.minTemp, channelConfiguration.maxTemp, precision, new NumberValue(null, null, precision, channelConfiguration.temperatureUnit.getUnit()), updateListener,
channelConfiguration.temperatureUnit.getUnit()), null, null, channelConfiguration.currentTemperatureTemplate,
updateListener, null, null, channelConfiguration.currentTemperatureTemplate,
channelConfiguration.currentTemperatureTopic, commandFilter); channelConfiguration.currentTemperatureTopic, commandFilter);
buildOptionalChannel(FAN_MODE_CH_ID, new TextValue(channelConfiguration.fanModes.toArray(new String[0])), buildOptionalChannel(FAN_MODE_CH_ID, new TextValue(channelConfiguration.fanModes.toArray(new String[0])),