mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 11:08:10 +01:00
[time_based] : Fixed config format
This commit is contained in:
parent
c016c85c5f
commit
336e03ed37
1 changed files with 4 additions and 2 deletions
|
@ -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 a new issue