mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 16:48:40 +00:00
Merge remote-tracking branch 'upstream/remove-call-loop-wrapper' into integration
This commit is contained in:
@@ -587,7 +587,7 @@ def _build_config_struct(
|
||||
async def to_code(config: ConfigType) -> None:
|
||||
add_idf_component(
|
||||
name="esphome/esp-hub75",
|
||||
ref="0.3.4",
|
||||
ref="0.3.5",
|
||||
)
|
||||
|
||||
# Set compile-time configuration via build flags (so external library sees them)
|
||||
|
||||
@@ -212,7 +212,6 @@ bool Component::cancel_retry(uint32_t id) {
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
void Component::call_loop_() { this->loop(); }
|
||||
void Component::call_setup() { this->setup(); }
|
||||
void Component::call_dump_config_() {
|
||||
this->dump_config();
|
||||
@@ -272,11 +271,11 @@ void Component::call() {
|
||||
case COMPONENT_STATE_SETUP:
|
||||
// State setup: Call first loop and set state to loop
|
||||
this->set_component_state_(COMPONENT_STATE_LOOP);
|
||||
this->call_loop_();
|
||||
this->loop();
|
||||
break;
|
||||
case COMPONENT_STATE_LOOP:
|
||||
// State loop: Call loop
|
||||
this->call_loop_();
|
||||
this->loop();
|
||||
break;
|
||||
case COMPONENT_STATE_FAILED:
|
||||
// State failed: Do nothing
|
||||
|
||||
@@ -301,7 +301,6 @@ class Component {
|
||||
protected:
|
||||
friend class Application;
|
||||
|
||||
void call_loop_();
|
||||
virtual void call_setup();
|
||||
void call_dump_config_();
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ dependencies:
|
||||
rules:
|
||||
- if: "target in [esp32s2, esp32s3, esp32p4]"
|
||||
esphome/esp-hub75:
|
||||
version: 0.3.4
|
||||
version: 0.3.5
|
||||
rules:
|
||||
- if: "target in [esp32, esp32s2, esp32s3, esp32c6, esp32p4]"
|
||||
espressif/mqtt:
|
||||
|
||||
Reference in New Issue
Block a user