mirror of
https://github.com/esphome/esphome.git
synced 2026-10-15 10:42:52 +00:00
[number] Drop the inert constructor, keep the initializers
This commit is contained in:
@@ -28,9 +28,6 @@ class Number;
|
||||
*/
|
||||
class Number : public EntityBase {
|
||||
public:
|
||||
// User provided, not "= default": `new(p) Number()` would zero-fill .bss that is already zero.
|
||||
Number() {}
|
||||
|
||||
float state{};
|
||||
|
||||
void publish_state(float state);
|
||||
|
||||
Reference in New Issue
Block a user