ESPHome 2026.1.5
Loading...
Searching...
No Matches
homeassistant_number.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace homeassistant {
9
11 public:
12 void set_entity_id(const char *entity_id) { this->entity_id_ = entity_id; }
13
14 void setup() override;
15 void dump_config() override;
16 float get_setup_priority() const override;
17
18 protected:
20 void min_retrieved_(StringRef min);
21 void max_retrieved_(StringRef max);
22 void step_retrieved_(StringRef step);
23
24 void control(float value) override;
25
26 const char *entity_id_{nullptr};
27};
28} // namespace homeassistant
29} // namespace esphome
StringRef is a reference to a string owned by something else.
Definition string_ref.h:26
Base-class for all numbers.
Definition number.h:29
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7