mirror of
https://github.com/esphome/esphome.git
synced 2026-01-10 04:00:51 -07:00
[micronova] Move STOVE_STATES to text sensor file as it's used only there (#12349)
This commit is contained in:
@@ -13,18 +13,6 @@ namespace esphome::micronova {
|
||||
static const char *const TAG = "micronova";
|
||||
static const int STOVE_REPLY_DELAY = 60;
|
||||
|
||||
static const std::string STOVE_STATES[11] = {"Off",
|
||||
"Start",
|
||||
"Pellets loading",
|
||||
"Ignition",
|
||||
"Working",
|
||||
"Brazier Cleaning",
|
||||
"Final Cleaning",
|
||||
"Standby",
|
||||
"No pellets alarm",
|
||||
"No ignition alarm",
|
||||
"Undefined alarm"};
|
||||
|
||||
enum class MicroNovaFunctions {
|
||||
STOVE_FUNCTION_VOID = 0,
|
||||
STOVE_FUNCTION_SWITCH = 1,
|
||||
|
||||
@@ -5,6 +5,18 @@
|
||||
|
||||
namespace esphome::micronova {
|
||||
|
||||
static const char *const STOVE_STATES[11] = {"Off",
|
||||
"Start",
|
||||
"Pellets loading",
|
||||
"Ignition",
|
||||
"Working",
|
||||
"Brazier Cleaning",
|
||||
"Final Cleaning",
|
||||
"Standby",
|
||||
"No pellets alarm",
|
||||
"No ignition alarm",
|
||||
"Undefined alarm"};
|
||||
|
||||
class MicroNovaTextSensor : public text_sensor::TextSensor, public MicroNovaListener {
|
||||
public:
|
||||
MicroNovaTextSensor(MicroNova *m) : MicroNovaListener(m) {}
|
||||
|
||||
Reference in New Issue
Block a user