mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 12:37:45 +01:00
[time_based] : Fixed config format
This commit is contained in:
parent
c016c85c5f
commit
336e03ed37
@ -2,6 +2,8 @@
|
||||
#include "esphome/core/log.h"
|
||||
#include "esphome/core/hal.h"
|
||||
|
||||
#include <cinttypes>
|
||||
|
||||
namespace esphome {
|
||||
namespace time_based {
|
||||
|
||||
@ -15,9 +17,9 @@ void TimeBasedCover::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, " Close Duration: %.1fs", this->close_duration_ / 1e3f);
|
||||
|
||||
if (this->tilt_duration_ > 0)
|
||||
ESP_LOGCONFIG(TAG, " Tilt Duration: %ums", this->tilt_duration_);
|
||||
ESP_LOGCONFIG(TAG, " Tilt Duration: %" PRIu32 "ms", this->tilt_duration_);
|
||||
|
||||
ESP_LOGCONFIG(TAG, " Activation delay: %ums", this->activation_delay_);
|
||||
ESP_LOGCONFIG(TAG, " Activation delay: %" PRIu32 "ms", this->activation_delay_);
|
||||
}
|
||||
void TimeBasedCover::setup() {
|
||||
auto restore = this->restore_state_();
|
||||
|
Loading…
Reference in New Issue
Block a user