mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
Fix cover state (#2468)
This commit is contained in:
parent
e514a1fcd4
commit
c092d92d45
1 changed files with 1 additions and 0 deletions
|
@ -70,6 +70,7 @@ void MQTTCoverComponent::send_discovery(JsonObject &root, mqtt::SendDiscoveryCon
|
||||||
root["optimistic"] = true;
|
root["optimistic"] = true;
|
||||||
}
|
}
|
||||||
if (traits.get_supports_position()) {
|
if (traits.get_supports_position()) {
|
||||||
|
config.state_topic = false;
|
||||||
root["position_topic"] = this->get_position_state_topic();
|
root["position_topic"] = this->get_position_state_topic();
|
||||||
root["set_position_topic"] = this->get_position_command_topic();
|
root["set_position_topic"] = this->get_position_command_topic();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue