mirror of
https://github.com/esphome/esphome.git
synced 2025-09-14 09:12:19 +01:00
fix: restore turn_on, turn_off, and set_state methods in Mcp4461Wiper class
This commit is contained in:
@@ -12,6 +12,9 @@ class Mcp4461Wiper : public output::FloatOutput, public Parented<Mcp4461Componen
|
|||||||
public:
|
public:
|
||||||
Mcp4461Wiper(Mcp4461Component *parent, Mcp4461WiperIdx wiper) : parent_(parent), wiper_(wiper) {}
|
Mcp4461Wiper(Mcp4461Component *parent, Mcp4461WiperIdx wiper) : parent_(parent), wiper_(wiper) {}
|
||||||
|
|
||||||
|
void turn_on() override;
|
||||||
|
void turn_off() override;
|
||||||
|
void set_state(bool state) override;
|
||||||
float read_state();
|
float read_state();
|
||||||
float update_state();
|
float update_state();
|
||||||
void increase_wiper();
|
void increase_wiper();
|
||||||
@@ -21,9 +24,6 @@ class Mcp4461Wiper : public output::FloatOutput, public Parented<Mcp4461Componen
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void write_state(float state) override;
|
void write_state(float state) override;
|
||||||
void turn_on() override;
|
|
||||||
void turn_off() override;
|
|
||||||
void set_state(bool state) override;
|
|
||||||
Mcp4461Component *parent_;
|
Mcp4461Component *parent_;
|
||||||
Mcp4461WiperIdx wiper_;
|
Mcp4461WiperIdx wiper_;
|
||||||
float state_;
|
float state_;
|
||||||
|
Reference in New Issue
Block a user