not sure why but i guess this works!

This commit is contained in:
Daniël Koek 2024-09-19 16:45:11 +01:00
parent 8fb544b4cf
commit 1f88438dd9
2 changed files with 24 additions and 26 deletions

View file

@ -1,6 +1,10 @@
#pragma once
#include "esphome/core/component.h"
#include "esphome/core/helpers.h"
#include "esphome/components/uart/uart.h"
#include "esphome/core/log.h"
#include "config.h"
#ifdef USE_SENSOR
#include "esphome/components/sensor/sensor.h"
#endif
@ -10,11 +14,6 @@
#include <utility>
#include <vector>
#include <map>
#include "esphome/core/helpers.h"
#include "esphome/components/uart/uart.h"
#include "esphome/core/log.h"
#include "config.h"
namespace esphome {
namespace ebyte_lora {
@ -51,7 +50,6 @@ class EbyteLoraComponent : public PollingComponent, public uart::UARTDevice {
void loop() override;
void dump_config() override;
#ifdef USE_SENSOR
void add_sensor(const char *id, sensor::Sensor *sensor) {
Sensor st{sensor, id, true};