mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 07:58:09 +01:00
not sure why but i guess this works!
This commit is contained in:
parent
8fb544b4cf
commit
1f88438dd9
2 changed files with 24 additions and 26 deletions
|
@ -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};
|
||||
|
|
Loading…
Reference in a new issue