[micronova] Move STOVE_STATES to text sensor file as it's used only there (#12349)

This commit is contained in:
Robert Resch
2025-12-08 01:08:41 +01:00
committed by GitHub
parent 1134251c32
commit e36e6fbc3f
2 changed files with 12 additions and 12 deletions

View File

@@ -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,

View File

@@ -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) {}