[select] [switch] Downgrade control path logging from DEBUG to VERBOSE (#15406)
This commit is contained in:
1 parent
f193bab60b
commit
83a4edbea1
2 files changed
+4
-4
No files matched your search
@@ -18,15 +18,15 @@ void Switch::control(bool target_state) {
|
||||
}
|
||||
}
|
||||
void Switch::turn_on() {
|
||||
ESP_LOGD(TAG, "'%s' Turning ON.", this->get_name().c_str());
|
||||
ESP_LOGV(TAG, "'%s' Turning ON.", this->get_name().c_str());
|
||||
this->write_state(!this->inverted_);
|
||||
}
|
||||
void Switch::turn_off() {
|
||||
ESP_LOGD(TAG, "'%s' Turning OFF.", this->get_name().c_str());
|
||||
ESP_LOGV(TAG, "'%s' Turning OFF.", this->get_name().c_str());
|
||||
this->write_state(this->inverted_);
|
||||
}
|
||||
void Switch::toggle() {
|
||||
ESP_LOGD(TAG, "'%s' Toggling %s.", this->get_name().c_str(), this->state ? "OFF" : "ON");
|
||||
ESP_LOGV(TAG, "'%s' Toggling %s.", this->get_name().c_str(), this->state ? "OFF" : "ON");
|
||||
this->write_state(this->inverted_ == this->state);
|
||||
}
|
||||
optional<bool> Switch::get_initial_state() {
|
||||
|
||||
Reference in new issue
Block a user