binary sensor

This commit is contained in:
J. Nick Koston 2023-06-07 11:32:02 -05:00
parent 226398ca54
commit 6a9b065f5e
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ namespace ratgdo {
class RATGDOBinarySensor : public binary_sensor::BinarySensor, public RATGDOClient, public Component {
public:
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_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;
protected:
std::string type_;
const char *type_;
};