From de470a296e9a365c583c16ae034e9e9710fd89e5 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Wed, 16 Oct 2024 23:13:10 +0200 Subject: [PATCH] rollback --- esphome/components/mlx90393/sensor_mlx90393.cpp | 2 -- esphome/components/mlx90393/sensor_mlx90393.h | 4 +--- platformio.ini | 1 + 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/esphome/components/mlx90393/sensor_mlx90393.cpp b/esphome/components/mlx90393/sensor_mlx90393.cpp index b05cf4137a..d4431a7334 100644 --- a/esphome/components/mlx90393/sensor_mlx90393.cpp +++ b/esphome/components/mlx90393/sensor_mlx90393.cpp @@ -1,5 +1,4 @@ #include "sensor_mlx90393.h" -#if defined(USE_ARDUINO) || defined(USE_ESP_IDF) #include "esphome/core/log.h" namespace esphome { @@ -90,4 +89,3 @@ void MLX90393Cls::update() { } // namespace mlx90393 } // namespace esphome -#endif diff --git a/esphome/components/mlx90393/sensor_mlx90393.h b/esphome/components/mlx90393/sensor_mlx90393.h index 464046336f..8dfb7e6a13 100644 --- a/esphome/components/mlx90393/sensor_mlx90393.h +++ b/esphome/components/mlx90393/sensor_mlx90393.h @@ -1,6 +1,5 @@ #pragma once -#include "esphome/core/defines.h" -#if defined(USE_ARDUINO) || defined(USE_ESP_IDF) + #include "esphome/core/component.h" #include "esphome/components/sensor/sensor.h" #include "esphome/components/i2c/i2c.h" @@ -58,4 +57,3 @@ class MLX90393Cls : public PollingComponent, public i2c::I2CDevice, public MLX90 } // namespace mlx90393 } // namespace esphome -#endif diff --git a/platformio.ini b/platformio.ini index ac8685b4e8..7356af64a4 100644 --- a/platformio.ini +++ b/platformio.ini @@ -208,6 +208,7 @@ lib_deps = lvgl/lvgl@8.4.0 ; lvgl pavlodn/HaierProtocol@0.9.31 ; haier https://github.com/Sensirion/arduino-gas-index-algorithm.git#3.2.1 ; Sensirion Gas Index Algorithm Arduino Library + functionpointer/arduino-MLX90393@1.0.2 ; mlx90393 ; All the actual environments are defined below.