get rid of strings

This commit is contained in:
J. Nick Koston 2023-06-07 09:51:22 -05:00
parent 29cc8a43aa
commit 3b37318621
No known key found for this signature in database
3 changed files with 15 additions and 13 deletions

View File

@ -12,6 +12,8 @@
************************************/
#include "ratgdo.h"
#include "ratgdo_child.h"
#include "esphome/core/log.h"
namespace esphome {

View File

@ -22,6 +22,7 @@ extern "C" {
#include "secplus.h"
}
#include "ratgdo_child.h"
#define CODE_LENGTH 19
namespace esphome {

View File

@ -5,19 +5,18 @@
namespace esphome {
namespace ratgdo {
// Forward declare RATGDOComponent
class RATGDOComponent;
// Forward declare RATGDOComponent
class RATGDOComponent;
class RATGDOClient : public Parented<RATGDOComponent> {
public:
virtual void on_status() = 0;
virtual void on_ratgdo_state(bool is_ready) = 0;
class RATGDOClient : public Parented<RATGDOComponent> {
public:
virtual void on_status() = 0;
virtual void on_ratgdo_state(bool is_ready) = 0;
protected:
friend RATGDOComponent;
virtual std::string describe() = 0;
};
} // namespace ratgdo
} // namespace esphome
protected:
friend RATGDOComponent;
virtual std::string describe() = 0;
};
} // namespace ratgdo
} // namespace esphome