mirror of
https://github.com/esphome/esphome.git
synced 2025-07-30 15:16:37 +00:00
Apply suggestions from code review
This commit is contained in:
parent
431766d898
commit
9cd657e8f5
@ -152,9 +152,7 @@ void Component::call() {
|
|||||||
case COMPONENT_STATE_CONSTRUCTION: {
|
case COMPONENT_STATE_CONSTRUCTION: {
|
||||||
// State Construction: Call setup and set state to setup
|
// State Construction: Call setup and set state to setup
|
||||||
this->set_component_state_(COMPONENT_STATE_SETUP);
|
this->set_component_state_(COMPONENT_STATE_SETUP);
|
||||||
#if ESPHOME_LOG_LEVEL >= ESPHOME_LOG_LEVEL_VERBOSE
|
|
||||||
ESP_LOGV(TAG, "Setup %s", this->get_component_source());
|
ESP_LOGV(TAG, "Setup %s", this->get_component_source());
|
||||||
#endif
|
|
||||||
#if ESPHOME_LOG_LEVEL >= ESPHOME_LOG_LEVEL_DEBUG
|
#if ESPHOME_LOG_LEVEL >= ESPHOME_LOG_LEVEL_DEBUG
|
||||||
uint32_t start_time = millis();
|
uint32_t start_time = millis();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user