mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 22:24:26 +00:00
Use relative include, add check
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "esphome/components/adc/adc_sensor.h"
|
||||
#include "adc_sensor.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
#ifdef USE_ADC_SENSOR_VCC
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import esphome.codegen as cg
|
||||
import esphome.config_validation as cv
|
||||
from esphome.components import sensor, voltage_sampler
|
||||
from esphome.components.ads1115 import ADS1115Component
|
||||
from esphome.const import CONF_GAIN, CONF_MULTIPLEXER, ICON_FLASH, UNIT_VOLT, CONF_ID
|
||||
from esphome.py_compat import string_types
|
||||
from . import ads1115_ns
|
||||
from . import ads1115_ns, ADS1115Component
|
||||
|
||||
DEPENDENCIES = ['ads1115']
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "esphome/components/binary_sensor/binary_sensor.h"
|
||||
#include "binary_sensor.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
namespace esphome {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "esphome/components/binary_sensor/filter.h"
|
||||
#include "esphome/components/binary_sensor/binary_sensor.h"
|
||||
#include "filter.h"
|
||||
#include "binary_sensor.h"
|
||||
|
||||
namespace esphome {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "esphome/components/dht/dht.h"
|
||||
#include "dht.h"
|
||||
#include "esphome/core/log.h"
|
||||
#include "esphome/core/helpers.h"
|
||||
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import esphome.codegen as cg
|
||||
import esphome.config_validation as cv
|
||||
from esphome.components import binary_sensor
|
||||
from esphome.components.esp32_touch import ESP32TouchComponent
|
||||
from esphome.const import CONF_NAME, CONF_PIN, CONF_THRESHOLD, ESP_PLATFORM_ESP32, CONF_ID
|
||||
from esphome.pins import validate_gpio_pin
|
||||
from . import esp32_touch_ns
|
||||
from . import esp32_touch_ns, ESP32TouchComponent
|
||||
|
||||
ESP_PLATFORMS = [ESP_PLATFORM_ESP32]
|
||||
DEPENDENCIES = ['esp32_touch']
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "esphome/components/gpio/binary_sensor/gpio_binary_sensor.h"
|
||||
#include "gpio_binary_sensor.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
namespace esphome {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "esphome/components/gpio/switch/gpio_switch.h"
|
||||
#include "gpio_switch.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
namespace esphome {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "esphome/components/logger/logger.h"
|
||||
#include "logger.h"
|
||||
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
#include <esp_log.h>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import esphome.codegen as cg
|
||||
import esphome.config_validation as cv
|
||||
from esphome.components import output
|
||||
from esphome.components.my9231 import MY9231OutputComponent
|
||||
from esphome.const import CONF_CHANNEL, CONF_ID
|
||||
from . import MY9231OutputComponent
|
||||
|
||||
DEPENDENCIES = ['my9231']
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "esphome/components/ota/ota_component.h"
|
||||
#include "ota_component.h"
|
||||
|
||||
#include "esphome/core/log.h"
|
||||
#include "esphome/core/helpers.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "esphome/components/sensor/filter.h"
|
||||
#include "esphome/components/sensor/sensor.h"
|
||||
#include "filter.h"
|
||||
#include "sensor.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
namespace esphome {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "esphome/components/sensor/sensor.h"
|
||||
#include "sensor.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
namespace esphome {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "esphome/components/switch/switch.h"
|
||||
#include "switch.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
namespace esphome {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "esphome/components/uptime/uptime_sensor.h"
|
||||
#include "uptime_sensor.h"
|
||||
#include "esphome/core/log.h"
|
||||
#include "esphome/core/helpers.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "esphome/components/wifi/wifi_component.h"
|
||||
#include "wifi_component.h"
|
||||
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
#include <esp_wifi.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "esphome/components/wifi/wifi_component.h"
|
||||
#include "wifi_component.h"
|
||||
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "esphome/components/wifi/wifi_component.h"
|
||||
#include "wifi_component.h"
|
||||
|
||||
#ifdef ARDUINO_ARCH_ESP8266
|
||||
|
||||
|
||||
Reference in New Issue
Block a user