This commit is contained in:
2025-06-16 11:07:46 +02:00
parent fd901fd1e1
commit 68ab694d8a
3 changed files with 22 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include <string>
#include <unordered_map>
#include "esphome/core/component.h"
#include "esphome/components/uart/uart.h"
#ifdef USE_SENSOR
@@ -15,7 +17,6 @@ class Marlin2 : public PollingComponent, public uart::UARTDevice {
public:
Marlin2() = default;
#ifdef USE_SENSOR
void add_sensor(const std::string& sName, sensor::Sensor *sens);
sensor::Sensor* find_sensor(std::string key);
@@ -55,6 +56,7 @@ class Marlin2 : public PollingComponent, public uart::UARTDevice {
private:
unsigned long millisProgress=0;
std::unordered_map<std::string, std::string> file_table_;
};
} // namespace esphome