Added parameters to component Climate.MQTT#12223
Added parameters to component Climate.MQTT#12223diogos88 wants to merge 2 commits intohome-assistant:devfrom
Conversation
…AL_SWING_MODE, ATTR_MIN_TEMP, ATTR_MAX_TEMP, ATTR_TARGET_TEMP_STEP
|
Can you add what parameters you added to the description. Yes I can look at the code but you put more description in your git commit message than in the PR description. |
|
Parameters added in PR description. |
|
Your code adds the |
|
The constructor parameters where already there but set to SPEED_LOW, STATE_OFF, STATE_OFF when instantiated. With this modification, these parameters are by default set to SPEED_LOW, STATE_OFF, STATE_OFF and if the user set the field in the config file, they will be set to the users value. |
|
Ah, I see! But:
|
|
So basically, the component from day one did not respect this. I always forced an upgrade via mqtt when hass start. |
|
I don't think that we should add |
|
Better alternative is restore the state by querying the values from before HASS shutdown. See #14151 for an example how it was added to the MQTT switch. Will close this PR and you can open a new PR using restore_state if you want. |
Description:
Added parameters to component Climate.MQTT
initial_mode
initial_fan_mode
initial_swing_mode
min_temp
max_temp
target_temp_step
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#4592
Example entry for
configuration.yaml(if applicable):