mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 16:51:52 +00:00
dry
This commit is contained in:
@@ -128,7 +128,8 @@ class OTAComponentBridge : public OTAStateListener {
|
||||
class OTAGlobalCallback {
|
||||
public:
|
||||
void register_ota(OTAComponent *ota_caller) {
|
||||
// Create a bridge that forwards this component's events to global listeners
|
||||
// Create a bridge that forwards this component's events to global listeners.
|
||||
// Intentionally never deleted - these objects live for the lifetime of the device.
|
||||
auto *bridge = new OTAComponentBridge(this, ota_caller); // NOLINT(cppcoreguidelines-owning-memory)
|
||||
ota_caller->add_state_listener(bridge);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user