ESPHome  2024.2.1
copy_lock.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace esphome {
7 namespace copy {
8 
9 class CopyLock : public lock::Lock, public Component {
10  public:
11  void set_source(lock::Lock *source) { source_ = source; }
12  void setup() override;
13  void dump_config() override;
14  float get_setup_priority() const override { return setup_priority::DATA; }
15 
16  protected:
17  void control(const lock::LockCall &call) override;
18 
20 };
21 
22 } // namespace copy
23 } // namespace esphome
const float DATA
For components that import data from directly connected sensors like DHT.
Definition: component.cpp:18
void control(const lock::LockCall &call) override
Definition: copy_lock.cpp:22
void dump_config() override
Definition: copy_lock.cpp:20
float get_setup_priority() const override
Definition: copy_lock.h:14
void setup() override
Definition: copy_lock.cpp:9
This class is used to encode all control actions on a lock device.
Definition: lock.h:71
void set_source(lock::Lock *source)
Definition: copy_lock.h:11
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
lock::Lock * source_
Definition: copy_lock.h:19
Base class for all locks.
Definition: lock.h:103