From b42b5f423953419342717d960b529c80120984b5 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 09:49:24 -0500 Subject: [PATCH] get rid of strings --- components/ratgdo/ratgdo_child.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 components/ratgdo/ratgdo_child.h diff --git a/components/ratgdo/ratgdo_child.h b/components/ratgdo/ratgdo_child.h new file mode 100644 index 0000000..66cf75d --- /dev/null +++ b/components/ratgdo/ratgdo_child.h @@ -0,0 +1,23 @@ +#pragma once + +#include "esphome/core/helpers.h" + +namespace esphome { +namespace ratgdo { + +// Forward declare RATGDOComponent +class RATGDOComponent; + +class BedJetClient : public Parented { + 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 +