ESPHome  2024.3.2
uptime_sensor.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace esphome {
7 namespace uptime {
8 
10  public:
11  void update() override;
12  void dump_config() override;
13 
14  float get_setup_priority() const override;
15 
16  std::string unique_id() override;
17 
18  protected:
19  uint64_t uptime_{0};
20 };
21 
22 } // namespace uptime
23 } // namespace esphome
std::string unique_id() override
This class simplifies creating components that periodically check a state.
Definition: component.h:283
float get_setup_priority() const override
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
Base-class for all sensors.
Definition: sensor.h:57