mirror of
https://github.com/esphome/esphome.git
synced 2024-11-13 02:37:47 +01:00
commit
6e83790308
3 changed files with 3 additions and 2 deletions
|
@ -114,6 +114,7 @@ void MQTTFanComponent::send_discovery(JsonObject root, mqtt::SendDiscoveryConfig
|
||||||
if (this->state_->get_traits().supports_speed()) {
|
if (this->state_->get_traits().supports_speed()) {
|
||||||
root[MQTT_PERCENTAGE_COMMAND_TOPIC] = this->get_speed_level_command_topic();
|
root[MQTT_PERCENTAGE_COMMAND_TOPIC] = this->get_speed_level_command_topic();
|
||||||
root[MQTT_PERCENTAGE_STATE_TOPIC] = this->get_speed_level_state_topic();
|
root[MQTT_PERCENTAGE_STATE_TOPIC] = this->get_speed_level_state_topic();
|
||||||
|
root[MQTT_SPEED_RANGE_MAX] = this->state_->get_traits().supported_speed_count();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool MQTTFanComponent::publish_state() {
|
bool MQTTFanComponent::publish_state() {
|
||||||
|
|
|
@ -115,7 +115,7 @@ void Nextion::set_backlight_brightness(float brightness) {
|
||||||
ESP_LOGD(TAG, "Brightness out of bounds, percentage range 0-1.0");
|
ESP_LOGD(TAG, "Brightness out of bounds, percentage range 0-1.0");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this->add_no_result_to_queue_with_set("backlight_brightness", "dim", static_cast<int>(brightness * 100));
|
this->add_no_result_to_queue_with_printf_("backlight_brightness", "dim=%d", static_cast<int>(brightness * 100));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Nextion::set_auto_wake_on_touch(bool auto_wake) {
|
void Nextion::set_auto_wake_on_touch(bool auto_wake) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Constants used by esphome."""
|
"""Constants used by esphome."""
|
||||||
|
|
||||||
__version__ = "2022.6.0b1"
|
__version__ = "2022.6.0b2"
|
||||||
|
|
||||||
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
|
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue