get rid of strings

This commit is contained in:
J. Nick Koston 2023-06-07 09:47:27 -05:00
parent 88d000fb2a
commit 74206e9c63
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

@ -639,7 +639,7 @@ namespace ratgdo {
this->pref_.save(&this->rollingCodeCounter); this->pref_.save(&this->rollingCodeCounter);
} }
void RATGDOComponent::register_child(RATGDOComponent* obj) void RATGDOComponent::register_child(RATGDOClient* obj)
{ {
this->children_.push_back(obj); this->children_.push_back(obj);
obj->set_parent(this); obj->set_parent(this);

View File

@ -27,6 +27,9 @@ extern "C" {
namespace esphome { namespace esphome {
namespace ratgdo { namespace ratgdo {
// Forward declare RATGDOClient
class RATGDOClient;
/// Enum for all states a the door can be in. /// Enum for all states a the door can be in.
enum DoorState : uint8_t { enum DoorState : uint8_t {
DOOR_STATE_UNKNOWN = 0, DOOR_STATE_UNKNOWN = 0,
@ -161,7 +164,7 @@ namespace ratgdo {
void readRollingCode(uint8_t& door, uint8_t& light, uint8_t& lock, uint8_t& motion, uint8_t& obstruction); void readRollingCode(uint8_t& door, uint8_t& light, uint8_t& lock, uint8_t& motion, uint8_t& obstruction);
void sendCommand(Commands command); void sendCommand(Commands command);
/** Register a child component. */ /** Register a child component. */
void register_child(RATGDOComponent* obj); void register_child(RATGDOClient* obj);
protected: protected:
ESPPreferenceObject pref_; ESPPreferenceObject pref_;