binary sensor
This commit is contained in:
parent
226398ca54
commit
6a9b065f5e
|
@ -12,7 +12,7 @@ namespace ratgdo {
|
||||||
class RATGDOBinarySensor : public binary_sensor::BinarySensor, public RATGDOClient, public Component {
|
class RATGDOBinarySensor : public binary_sensor::BinarySensor, public RATGDOClient, public Component {
|
||||||
public:
|
public:
|
||||||
void dump_config() override;
|
void dump_config() override;
|
||||||
void set_type(const std::string &type_) { this->type_ = type_; }
|
void set_type(const char *) { this->type_ = type_; }
|
||||||
|
|
||||||
void on_door_state(esphome::ratgdo::DoorState state) override;
|
void on_door_state(esphome::ratgdo::DoorState state) override;
|
||||||
void on_light_state(esphome::ratgdo::LightState state) override;
|
void on_light_state(esphome::ratgdo::LightState state) override;
|
||||||
|
@ -21,7 +21,7 @@ class RATGDOBinarySensor : public binary_sensor::BinarySensor, public RATGDOClie
|
||||||
void on_obstruction_state(esphome::ratgdo::ObstructionState state) override;
|
void on_obstruction_state(esphome::ratgdo::ObstructionState state) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::string type_;
|
const char *type_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue