mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 12:06:26 +01:00
Fix cover state (#2468)
This commit is contained in:
parent
e514a1fcd4
commit
c092d92d45
@ -70,6 +70,7 @@ void MQTTCoverComponent::send_discovery(JsonObject &root, mqtt::SendDiscoveryCon
|
||||
root["optimistic"] = true;
|
||||
}
|
||||
if (traits.get_supports_position()) {
|
||||
config.state_topic = false;
|
||||
root["position_topic"] = this->get_position_state_topic();
|
||||
root["set_position_topic"] = this->get_position_command_topic();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user