mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 08:55:22 +01:00
Fix MQTT climate custom fan modes without regular ones (#2071)
This commit is contained in:
parent
1e2a9e8348
commit
71ded24fce
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ void MQTTClimateComponent::send_discovery(JsonObject &root, mqtt::SendDiscoveryC
|
||||||
root["act_t"] = this->get_action_state_topic();
|
root["act_t"] = this->get_action_state_topic();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (traits.get_supports_fan_modes()) {
|
if (traits.get_supports_fan_modes() || !traits.get_supported_custom_fan_modes().empty()) {
|
||||||
// fan_mode_command_topic
|
// fan_mode_command_topic
|
||||||
root["fan_mode_cmd_t"] = this->get_fan_mode_command_topic();
|
root["fan_mode_cmd_t"] = this->get_fan_mode_command_topic();
|
||||||
// fan_mode_state_topic
|
// fan_mode_state_topic
|
||||||
|
|
Loading…
Reference in a new issue