From 6a9b065f5ef778eb8a82eb0c27ae70565b30c2bf Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 11:32:02 -0500 Subject: [PATCH] binary sensor --- components/ratgdo/binary_sensor/ratgdo_binary_sensor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.h b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.h index 3d22335..19ff5b4 100644 --- a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.h +++ b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.h @@ -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_; };