From 9273e3775b09d1c7f2bdf55bfa4da2dfd99cdbd6 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Thu, 24 Nov 2022 13:12:55 +1300 Subject: [PATCH] Add vector includes (#4080) --- .../addressable_light/addressable_light_display.h | 2 ++ esphome/components/ade7953/ade7953.h | 2 ++ esphome/components/ads1115/ads1115.h | 2 ++ esphome/components/api/api_connection.h | 2 ++ esphome/components/api/api_server.h | 2 ++ esphome/components/api/homeassistant_service.h | 2 ++ esphome/components/api/proto.h | 2 ++ esphome/components/api/user_services.h | 1 + .../components/atc_mithermometer/atc_mithermometer.h | 2 ++ esphome/components/bedjet/bedjet_hub.h | 2 ++ esphome/components/binary_sensor/automation.h | 1 + esphome/components/binary_sensor/binary_sensor.h | 2 ++ esphome/components/binary_sensor/filter.h | 2 ++ .../components/binary_sensor_map/binary_sensor_map.h | 2 ++ esphome/components/ble_client/automation.h | 1 + esphome/components/ble_client/ble_client.h | 9 +++++---- esphome/components/ble_client/sensor/ble_sensor.h | 2 ++ esphome/components/bluetooth_proxy/bluetooth_proxy.h | 1 + esphome/components/canbus/canbus.h | 2 ++ esphome/components/cap1188/cap1188.h | 2 ++ .../custom/binary_sensor/custom_binary_sensor.h | 2 ++ esphome/components/custom/climate/custom_climate.h | 2 ++ esphome/components/custom/cover/custom_cover.h | 2 ++ esphome/components/custom/light/custom_light_output.h | 2 ++ esphome/components/custom/output/custom_output.h | 2 ++ esphome/components/custom/sensor/custom_sensor.h | 2 ++ esphome/components/custom/switch/custom_switch.h | 2 ++ .../components/custom/text_sensor/custom_text_sensor.h | 2 ++ esphome/components/custom_component/custom_component.h | 2 ++ esphome/components/dallas/dallas_component.h | 2 ++ esphome/components/daly_bms/daly_bms.h | 2 ++ esphome/components/display/display_buffer.h | 2 ++ esphome/components/dsmr/dsmr.h | 2 ++ esphome/components/ektf2232/ektf2232.cpp | 2 ++ .../components/esp32_ble_client/ble_characteristic.h | 2 ++ esphome/components/esp32_ble_client/ble_client_base.h | 1 + esphome/components/esp32_ble_client/ble_service.h | 2 ++ esphome/components/esp32_ble_server/ble_server.h | 1 + esphome/components/esp32_ble_server/ble_service.h | 2 ++ .../components/esp32_ble_tracker/esp32_ble_tracker.h | 6 ++++-- esphome/components/esp32_ble_tracker/queue.h | 5 +++-- .../components/esp32_improv/esp32_improv_component.h | 2 ++ esphome/components/esp32_touch/esp32_touch.h | 2 ++ esphome/components/esp8266/preferences.cpp | 10 ++++++---- esphome/components/fingerprint_grow/fingerprint_grow.h | 2 ++ esphome/components/gpio/switch/gpio_switch.h | 2 ++ esphome/components/gps/gps.h | 2 ++ esphome/components/graph/graph.h | 5 +++-- esphome/components/growatt_solar/growatt_solar.h | 2 ++ esphome/components/havells_solar/havells_solar.h | 2 ++ esphome/components/http_request/http_request.h | 4 +++- .../components/improv_serial/improv_serial_component.h | 1 + esphome/components/lcd_base/lcd_display.h | 1 + esphome/components/light/addressable_light_effect.h | 1 + esphome/components/light/base_light_effects.h | 1 + esphome/components/light/light_state.h | 2 ++ esphome/components/logger/logger.h | 5 +++-- esphome/components/ltr390/ltr390.h | 7 ++++--- esphome/components/max7219digit/max7219digit.h | 2 ++ esphome/components/modbus/modbus.h | 2 ++ .../binary_sensor/modbus_binarysensor.h | 2 ++ .../modbus_controller/number/modbus_number.h | 2 ++ .../modbus_controller/output/modbus_output.cpp | 3 +-- .../modbus_controller/output/modbus_output.h | 2 ++ .../modbus_controller/select/modbus_select.h | 1 + .../modbus_controller/sensor/modbus_sensor.h | 2 ++ .../modbus_controller/switch/modbus_switch.h | 2 ++ .../modbus_controller/text_sensor/modbus_textsensor.h | 2 ++ esphome/components/mopeka_ble/mopeka_ble.h | 2 ++ esphome/components/mopeka_pro_check/mopeka_pro_check.h | 2 ++ esphome/components/mpr121/mpr121.h | 2 ++ esphome/components/mqtt/mqtt_client.h | 2 ++ esphome/components/nextion/nextion.h | 2 ++ esphome/components/nextion/nextion_component_base.h | 1 + esphome/components/nfc/ndef_message.h | 1 + esphome/components/nfc/ndef_record.h | 2 ++ esphome/components/nfc/ndef_record_text.h | 2 ++ esphome/components/nfc/ndef_record_uri.h | 2 ++ esphome/components/nfc/nfc.h | 2 ++ esphome/components/nfc/nfc_tag.h | 1 + esphome/components/partition/light_partition.h | 1 + esphome/components/pid/pid_autotuner.h | 2 ++ esphome/components/pid/pid_simulator.h | 2 ++ esphome/components/pipsolar/output/pipsolar_output.h | 2 ++ esphome/components/pn532/pn532.h | 2 ++ esphome/components/pn532_i2c/pn532_i2c.h | 2 ++ esphome/components/pn532_spi/pn532_spi.h | 2 ++ .../components/pvvx_mithermometer/pvvx_mithermometer.h | 2 ++ esphome/components/pzemac/pzemac.h | 2 ++ esphome/components/pzemdc/pzemdc.h | 2 ++ esphome/components/rc522/rc522.h | 2 ++ esphome/components/rdm6300/rdm6300.h | 2 ++ esphome/components/remote_base/aeha_protocol.h | 2 ++ esphome/components/remote_base/midea_protocol.h | 1 + esphome/components/remote_base/pronto_protocol.h | 2 ++ esphome/components/remote_base/raw_protocol.h | 2 ++ esphome/components/remote_base/remote_base.h | 1 + .../components/remote_transmitter/remote_transmitter.h | 2 ++ esphome/components/rf_bridge/rf_bridge.h | 1 + esphome/components/rp2040/preferences.cpp | 2 ++ esphome/components/sdm_meter/sdm_meter.h | 2 ++ esphome/components/selec_meter/selec_meter.h | 2 ++ esphome/components/sensirion_common/i2c_sensirion.h | 2 ++ esphome/components/sensor/filter.h | 5 +++-- esphome/components/sensor/sensor.h | 2 ++ esphome/components/sprinkler/sprinkler.h | 2 ++ esphome/components/sx1509/sx1509.h | 2 ++ esphome/components/teleinfo/teleinfo.h | 2 ++ esphome/components/text_sensor/filter.h | 1 + esphome/components/text_sensor/text_sensor.h | 2 ++ esphome/components/thermostat/thermostat_climate.h | 2 ++ esphome/components/time/automation.h | 2 ++ esphome/components/tm1637/tm1637.h | 2 ++ esphome/components/tm1638/tm1638.h | 2 ++ esphome/components/toshiba/toshiba.cpp | 2 ++ esphome/components/ttp229_bsf/ttp229_bsf.h | 2 ++ esphome/components/ttp229_lsf/ttp229_lsf.h | 2 ++ esphome/components/tuya/automation.h | 2 ++ esphome/components/tuya/select/tuya_select.h | 2 ++ esphome/components/tuya/tuya.h | 2 ++ esphome/components/tx20/tx20.cpp | 2 ++ esphome/components/uart/automation.h | 2 ++ esphome/components/uart/switch/uart_switch.h | 2 ++ esphome/components/web_server_base/web_server_base.h | 2 ++ esphome/components/wifi/wifi_component.h | 2 ++ esphome/components/xiaomi_ble/xiaomi_ble.h | 2 ++ esphome/components/xiaomi_miscale/xiaomi_miscale.h | 2 ++ esphome/core/base_automation.h | 2 ++ 128 files changed, 252 insertions(+), 24 deletions(-) diff --git a/esphome/components/addressable_light/addressable_light_display.h b/esphome/components/addressable_light/addressable_light_display.h index dfafe9d98..8893c39be 100644 --- a/esphome/components/addressable_light/addressable_light_display.h +++ b/esphome/components/addressable_light/addressable_light_display.h @@ -5,6 +5,8 @@ #include "esphome/components/display/display_buffer.h" #include "esphome/components/light/addressable_light.h" +#include + namespace esphome { namespace addressable_light { diff --git a/esphome/components/ade7953/ade7953.h b/esphome/components/ade7953/ade7953.h index 418ad1c9e..c0c1cc4db 100644 --- a/esphome/components/ade7953/ade7953.h +++ b/esphome/components/ade7953/ade7953.h @@ -5,6 +5,8 @@ #include "esphome/components/i2c/i2c.h" #include "esphome/components/sensor/sensor.h" +#include + namespace esphome { namespace ade7953 { diff --git a/esphome/components/ads1115/ads1115.h b/esphome/components/ads1115/ads1115.h index 059436d14..17d5a910d 100644 --- a/esphome/components/ads1115/ads1115.h +++ b/esphome/components/ads1115/ads1115.h @@ -5,6 +5,8 @@ #include "esphome/components/i2c/i2c.h" #include "esphome/components/voltage_sampler/voltage_sampler.h" +#include + namespace esphome { namespace ads1115 { diff --git a/esphome/components/api/api_connection.h b/esphome/components/api/api_connection.h index 028fb8017..b2076635b 100644 --- a/esphome/components/api/api_connection.h +++ b/esphome/components/api/api_connection.h @@ -7,6 +7,8 @@ #include "esphome/core/application.h" #include "esphome/core/component.h" +#include + namespace esphome { namespace api { diff --git a/esphome/components/api/api_server.h b/esphome/components/api/api_server.h index 1aefa3140..8e69a7747 100644 --- a/esphome/components/api/api_server.h +++ b/esphome/components/api/api_server.h @@ -12,6 +12,8 @@ #include "user_services.h" #include "api_noise_context.h" +#include + namespace esphome { namespace api { diff --git a/esphome/components/api/homeassistant_service.h b/esphome/components/api/homeassistant_service.h index 90cfe751b..f04181e5b 100644 --- a/esphome/components/api/homeassistant_service.h +++ b/esphome/components/api/homeassistant_service.h @@ -5,6 +5,8 @@ #include "api_pb2.h" #include "api_server.h" +#include + namespace esphome { namespace api { diff --git a/esphome/components/api/proto.h b/esphome/components/api/proto.h index 11cd4330c..fea219ecb 100644 --- a/esphome/components/api/proto.h +++ b/esphome/components/api/proto.h @@ -4,6 +4,8 @@ #include "esphome/core/log.h" #include "esphome/core/helpers.h" +#include + #ifdef ESPHOME_LOG_HAS_VERY_VERBOSE #define HAS_PROTO_MESSAGE_DUMP #endif diff --git a/esphome/components/api/user_services.h b/esphome/components/api/user_services.h index df6f6924a..673bcf569 100644 --- a/esphome/components/api/user_services.h +++ b/esphome/components/api/user_services.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include "esphome/core/component.h" #include "esphome/core/automation.h" diff --git a/esphome/components/atc_mithermometer/atc_mithermometer.h b/esphome/components/atc_mithermometer/atc_mithermometer.h index 9398c02bc..31fb77ac7 100644 --- a/esphome/components/atc_mithermometer/atc_mithermometer.h +++ b/esphome/components/atc_mithermometer/atc_mithermometer.h @@ -4,6 +4,8 @@ #include "esphome/components/sensor/sensor.h" #include "esphome/components/esp32_ble_tracker/esp32_ble_tracker.h" +#include + #ifdef USE_ESP32 namespace esphome { diff --git a/esphome/components/bedjet/bedjet_hub.h b/esphome/components/bedjet/bedjet_hub.h index f1479710a..fb757dfdf 100644 --- a/esphome/components/bedjet/bedjet_hub.h +++ b/esphome/components/bedjet/bedjet_hub.h @@ -8,6 +8,8 @@ #include "bedjet_child.h" #include "bedjet_codec.h" +#include + #ifdef USE_TIME #include "esphome/components/time/real_time_clock.h" #endif diff --git a/esphome/components/binary_sensor/automation.h b/esphome/components/binary_sensor/automation.h index 31bf1a556..de527d107 100644 --- a/esphome/components/binary_sensor/automation.h +++ b/esphome/components/binary_sensor/automation.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include "esphome/core/component.h" #include "esphome/core/automation.h" diff --git a/esphome/components/binary_sensor/binary_sensor.h b/esphome/components/binary_sensor/binary_sensor.h index b0c39a2c9..730ded3f9 100644 --- a/esphome/components/binary_sensor/binary_sensor.h +++ b/esphome/components/binary_sensor/binary_sensor.h @@ -5,6 +5,8 @@ #include "esphome/core/helpers.h" #include "esphome/components/binary_sensor/filter.h" +#include + namespace esphome { namespace binary_sensor { diff --git a/esphome/components/binary_sensor/filter.h b/esphome/components/binary_sensor/filter.h index 59068634a..64a33f6e3 100644 --- a/esphome/components/binary_sensor/filter.h +++ b/esphome/components/binary_sensor/filter.h @@ -3,6 +3,8 @@ #include "esphome/core/component.h" #include "esphome/core/helpers.h" +#include + namespace esphome { namespace binary_sensor { diff --git a/esphome/components/binary_sensor_map/binary_sensor_map.h b/esphome/components/binary_sensor_map/binary_sensor_map.h index a880be962..a1d6f9500 100644 --- a/esphome/components/binary_sensor_map/binary_sensor_map.h +++ b/esphome/components/binary_sensor_map/binary_sensor_map.h @@ -4,6 +4,8 @@ #include "esphome/components/binary_sensor/binary_sensor.h" #include "esphome/components/sensor/sensor.h" +#include + namespace esphome { namespace binary_sensor_map { diff --git a/esphome/components/ble_client/automation.h b/esphome/components/ble_client/automation.h index 98c19dedf..ef3833369 100644 --- a/esphome/components/ble_client/automation.h +++ b/esphome/components/ble_client/automation.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include "esphome/core/automation.h" #include "esphome/components/ble_client/ble_client.h" diff --git a/esphome/components/ble_client/ble_client.h b/esphome/components/ble_client/ble_client.h index 54f5f298f..ceca94c86 100644 --- a/esphome/components/ble_client/ble_client.h +++ b/esphome/components/ble_client/ble_client.h @@ -7,12 +7,13 @@ #ifdef USE_ESP32 -#include -#include -#include -#include #include +#include #include +#include +#include +#include +#include namespace esphome { namespace ble_client { diff --git a/esphome/components/ble_client/sensor/ble_sensor.h b/esphome/components/ble_client/sensor/ble_sensor.h index d3d037572..b11a010ee 100644 --- a/esphome/components/ble_client/sensor/ble_sensor.h +++ b/esphome/components/ble_client/sensor/ble_sensor.h @@ -5,6 +5,8 @@ #include "esphome/components/esp32_ble_tracker/esp32_ble_tracker.h" #include "esphome/components/sensor/sensor.h" +#include + #ifdef USE_ESP32 #include diff --git a/esphome/components/bluetooth_proxy/bluetooth_proxy.h b/esphome/components/bluetooth_proxy/bluetooth_proxy.h index 129b04227..b33e084b7 100644 --- a/esphome/components/bluetooth_proxy/bluetooth_proxy.h +++ b/esphome/components/bluetooth_proxy/bluetooth_proxy.h @@ -3,6 +3,7 @@ #ifdef USE_ESP32 #include +#include #include "esphome/components/api/api_pb2.h" #include "esphome/components/esp32_ble_client/ble_client_base.h" diff --git a/esphome/components/canbus/canbus.h b/esphome/components/canbus/canbus.h index 06b15c0db..4a1274262 100644 --- a/esphome/components/canbus/canbus.h +++ b/esphome/components/canbus/canbus.h @@ -4,6 +4,8 @@ #include "esphome/core/component.h" #include "esphome/core/optional.h" +#include + namespace esphome { namespace canbus { diff --git a/esphome/components/cap1188/cap1188.h b/esphome/components/cap1188/cap1188.h index a1433deb0..fa0ed622f 100644 --- a/esphome/components/cap1188/cap1188.h +++ b/esphome/components/cap1188/cap1188.h @@ -6,6 +6,8 @@ #include "esphome/components/output/binary_output.h" #include "esphome/components/binary_sensor/binary_sensor.h" +#include + namespace esphome { namespace cap1188 { diff --git a/esphome/components/custom/binary_sensor/custom_binary_sensor.h b/esphome/components/custom/binary_sensor/custom_binary_sensor.h index 314b9b083..b7d5458d9 100644 --- a/esphome/components/custom/binary_sensor/custom_binary_sensor.h +++ b/esphome/components/custom/binary_sensor/custom_binary_sensor.h @@ -3,6 +3,8 @@ #include "esphome/core/component.h" #include "esphome/components/binary_sensor/binary_sensor.h" +#include + namespace esphome { namespace custom { diff --git a/esphome/components/custom/climate/custom_climate.h b/esphome/components/custom/climate/custom_climate.h index 250d83f69..37876f711 100644 --- a/esphome/components/custom/climate/custom_climate.h +++ b/esphome/components/custom/climate/custom_climate.h @@ -3,6 +3,8 @@ #include "esphome/core/component.h" #include "esphome/components/climate/climate.h" +#include + namespace esphome { namespace custom { diff --git a/esphome/components/custom/cover/custom_cover.h b/esphome/components/custom/cover/custom_cover.h index 71f271bc8..58330b9d5 100644 --- a/esphome/components/custom/cover/custom_cover.h +++ b/esphome/components/custom/cover/custom_cover.h @@ -2,6 +2,8 @@ #include "esphome/components/cover/cover.h" +#include + namespace esphome { namespace custom { diff --git a/esphome/components/custom/light/custom_light_output.h b/esphome/components/custom/light/custom_light_output.h index 744e99b88..c2c83ebe9 100644 --- a/esphome/components/custom/light/custom_light_output.h +++ b/esphome/components/custom/light/custom_light_output.h @@ -3,6 +3,8 @@ #include "esphome/core/component.h" #include "esphome/components/light/light_output.h" +#include + namespace esphome { namespace custom { diff --git a/esphome/components/custom/output/custom_output.h b/esphome/components/custom/output/custom_output.h index 1b55d51e2..462464242 100644 --- a/esphome/components/custom/output/custom_output.h +++ b/esphome/components/custom/output/custom_output.h @@ -4,6 +4,8 @@ #include "esphome/components/output/binary_output.h" #include "esphome/components/output/float_output.h" +#include + namespace esphome { namespace custom { diff --git a/esphome/components/custom/sensor/custom_sensor.h b/esphome/components/custom/sensor/custom_sensor.h index 5ef3658e5..d8f4fbc10 100644 --- a/esphome/components/custom/sensor/custom_sensor.h +++ b/esphome/components/custom/sensor/custom_sensor.h @@ -3,6 +3,8 @@ #include "esphome/core/component.h" #include "esphome/components/sensor/sensor.h" +#include + namespace esphome { namespace custom { diff --git a/esphome/components/custom/switch/custom_switch.h b/esphome/components/custom/switch/custom_switch.h index 186e7473f..9657e4b44 100644 --- a/esphome/components/custom/switch/custom_switch.h +++ b/esphome/components/custom/switch/custom_switch.h @@ -3,6 +3,8 @@ #include "esphome/core/component.h" #include "esphome/components/switch/switch.h" +#include + namespace esphome { namespace custom { diff --git a/esphome/components/custom/text_sensor/custom_text_sensor.h b/esphome/components/custom/text_sensor/custom_text_sensor.h index f1e9c7665..13732c00b 100644 --- a/esphome/components/custom/text_sensor/custom_text_sensor.h +++ b/esphome/components/custom/text_sensor/custom_text_sensor.h @@ -3,6 +3,8 @@ #include "esphome/core/component.h" #include "esphome/components/text_sensor/text_sensor.h" +#include + namespace esphome { namespace custom { diff --git a/esphome/components/custom_component/custom_component.h b/esphome/components/custom_component/custom_component.h index 3f5760e4c..3b34019a7 100644 --- a/esphome/components/custom_component/custom_component.h +++ b/esphome/components/custom_component/custom_component.h @@ -3,6 +3,8 @@ #include "esphome/core/component.h" #include "esphome/core/application.h" +#include + namespace esphome { namespace custom_component { diff --git a/esphome/components/dallas/dallas_component.h b/esphome/components/dallas/dallas_component.h index 37c098283..b21bc02e5 100644 --- a/esphome/components/dallas/dallas_component.h +++ b/esphome/components/dallas/dallas_component.h @@ -4,6 +4,8 @@ #include "esphome/components/sensor/sensor.h" #include "esp_one_wire.h" +#include + namespace esphome { namespace dallas { diff --git a/esphome/components/daly_bms/daly_bms.h b/esphome/components/daly_bms/daly_bms.h index 44915368e..d4fe84fe4 100644 --- a/esphome/components/daly_bms/daly_bms.h +++ b/esphome/components/daly_bms/daly_bms.h @@ -6,6 +6,8 @@ #include "esphome/components/binary_sensor/binary_sensor.h" #include "esphome/components/uart/uart.h" +#include + namespace esphome { namespace daly_bms { diff --git a/esphome/components/display/display_buffer.h b/esphome/components/display/display_buffer.h index d2d3f2ed7..41052b3ff 100644 --- a/esphome/components/display/display_buffer.h +++ b/esphome/components/display/display_buffer.h @@ -4,7 +4,9 @@ #include "esphome/core/defines.h" #include "esphome/core/automation.h" #include "display_color_utils.h" + #include +#include #ifdef USE_TIME #include "esphome/components/time/real_time_clock.h" diff --git a/esphome/components/dsmr/dsmr.h b/esphome/components/dsmr/dsmr.h index 76f79ee55..6621d02ca 100644 --- a/esphome/components/dsmr/dsmr.h +++ b/esphome/components/dsmr/dsmr.h @@ -13,6 +13,8 @@ #include #include +#include + namespace esphome { namespace dsmr { diff --git a/esphome/components/ektf2232/ektf2232.cpp b/esphome/components/ektf2232/ektf2232.cpp index 8df25fce2..80f5f8a8e 100644 --- a/esphome/components/ektf2232/ektf2232.cpp +++ b/esphome/components/ektf2232/ektf2232.cpp @@ -2,6 +2,8 @@ #include "esphome/core/helpers.h" #include "esphome/core/log.h" +#include + namespace esphome { namespace ektf2232 { diff --git a/esphome/components/esp32_ble_client/ble_characteristic.h b/esphome/components/esp32_ble_client/ble_characteristic.h index d290b282f..d56516f1f 100644 --- a/esphome/components/esp32_ble_client/ble_characteristic.h +++ b/esphome/components/esp32_ble_client/ble_characteristic.h @@ -6,6 +6,8 @@ #include "ble_descriptor.h" +#include + namespace esphome { namespace esp32_ble_client { diff --git a/esphome/components/esp32_ble_client/ble_client_base.h b/esphome/components/esp32_ble_client/ble_client_base.h index 90cd8dbdd..38fd6a5ba 100644 --- a/esphome/components/esp32_ble_client/ble_client_base.h +++ b/esphome/components/esp32_ble_client/ble_client_base.h @@ -9,6 +9,7 @@ #include #include +#include #include #include diff --git a/esphome/components/esp32_ble_client/ble_service.h b/esphome/components/esp32_ble_client/ble_service.h index 04f2212e0..7b072f5fa 100644 --- a/esphome/components/esp32_ble_client/ble_service.h +++ b/esphome/components/esp32_ble_client/ble_service.h @@ -6,6 +6,8 @@ #include "ble_characteristic.h" +#include + namespace esphome { namespace esp32_ble_client { diff --git a/esphome/components/esp32_ble_server/ble_server.h b/esphome/components/esp32_ble_server/ble_server.h index d275eeab0..f82e85409 100644 --- a/esphome/components/esp32_ble_server/ble_server.h +++ b/esphome/components/esp32_ble_server/ble_server.h @@ -12,6 +12,7 @@ #include #include +#include #ifdef USE_ESP32 diff --git a/esphome/components/esp32_ble_server/ble_service.h b/esphome/components/esp32_ble_server/ble_service.h index 16cc89723..2766c931a 100644 --- a/esphome/components/esp32_ble_server/ble_service.h +++ b/esphome/components/esp32_ble_server/ble_service.h @@ -3,6 +3,8 @@ #include "ble_characteristic.h" #include "esphome/components/esp32_ble/ble_uuid.h" +#include + #ifdef USE_ESP32 #include diff --git a/esphome/components/esp32_ble_tracker/esp32_ble_tracker.h b/esphome/components/esp32_ble_tracker/esp32_ble_tracker.h index 4fbf7b12e..153a22437 100644 --- a/esphome/components/esp32_ble_tracker/esp32_ble_tracker.h +++ b/esphome/components/esp32_ble_tracker/esp32_ble_tracker.h @@ -5,10 +5,12 @@ #include "esphome/core/helpers.h" #include "queue.h" +#include +#include +#include + #ifdef USE_ESP32 -#include -#include #include #include #include diff --git a/esphome/components/esp32_ble_tracker/queue.h b/esphome/components/esp32_ble_tracker/queue.h index f3a2b3cb3..f1dcc337e 100644 --- a/esphome/components/esp32_ble_tracker/queue.h +++ b/esphome/components/esp32_ble_tracker/queue.h @@ -4,9 +4,10 @@ #include "esphome/core/component.h" #include "esphome/core/helpers.h" -#include -#include #include +#include +#include +#include #include #include diff --git a/esphome/components/esp32_improv/esp32_improv_component.h b/esphome/components/esp32_improv/esp32_improv_component.h index 45639f2f6..1a142c94b 100644 --- a/esphome/components/esp32_improv/esp32_improv_component.h +++ b/esphome/components/esp32_improv/esp32_improv_component.h @@ -9,6 +9,8 @@ #include "esphome/core/helpers.h" #include "esphome/core/preferences.h" +#include + #ifdef USE_ESP32 #include diff --git a/esphome/components/esp32_touch/esp32_touch.h b/esphome/components/esp32_touch/esp32_touch.h index d49e4703a..c954a1465 100644 --- a/esphome/components/esp32_touch/esp32_touch.h +++ b/esphome/components/esp32_touch/esp32_touch.h @@ -6,6 +6,8 @@ #include "esphome/components/binary_sensor/binary_sensor.h" #include +#include + #if ESP_IDF_VERSION_MAJOR >= 4 #include #else diff --git a/esphome/components/esp8266/preferences.cpp b/esphome/components/esp8266/preferences.cpp index 1bd20f16a..8ee5a8225 100644 --- a/esphome/components/esp8266/preferences.cpp +++ b/esphome/components/esp8266/preferences.cpp @@ -5,12 +5,14 @@ extern "C" { #include "spi_flash.h" } -#include "preferences.h" -#include -#include "esphome/core/preferences.h" +#include "esphome/core/defines.h" #include "esphome/core/helpers.h" #include "esphome/core/log.h" -#include "esphome/core/defines.h" +#include "esphome/core/preferences.h" +#include "preferences.h" + +#include +#include namespace esphome { namespace esp8266 { diff --git a/esphome/components/fingerprint_grow/fingerprint_grow.h b/esphome/components/fingerprint_grow/fingerprint_grow.h index e50418a76..96d02a1e8 100644 --- a/esphome/components/fingerprint_grow/fingerprint_grow.h +++ b/esphome/components/fingerprint_grow/fingerprint_grow.h @@ -6,6 +6,8 @@ #include "esphome/components/binary_sensor/binary_sensor.h" #include "esphome/components/uart/uart.h" +#include + namespace esphome { namespace fingerprint_grow { diff --git a/esphome/components/gpio/switch/gpio_switch.h b/esphome/components/gpio/switch/gpio_switch.h index 99f8060ef..b28ba3a85 100644 --- a/esphome/components/gpio/switch/gpio_switch.h +++ b/esphome/components/gpio/switch/gpio_switch.h @@ -4,6 +4,8 @@ #include "esphome/core/hal.h" #include "esphome/components/switch/switch.h" +#include + namespace esphome { namespace gpio { diff --git a/esphome/components/gps/gps.h b/esphome/components/gps/gps.h index 40cda145c..0626fb0b0 100644 --- a/esphome/components/gps/gps.h +++ b/esphome/components/gps/gps.h @@ -7,6 +7,8 @@ #include "esphome/components/sensor/sensor.h" #include +#include + namespace esphome { namespace gps { diff --git a/esphome/components/graph/graph.h b/esphome/components/graph/graph.h index 15d2d1c7c..69c1167f5 100644 --- a/esphome/components/graph/graph.h +++ b/esphome/components/graph/graph.h @@ -1,9 +1,10 @@ #pragma once +#include +#include +#include #include "esphome/components/sensor/sensor.h" #include "esphome/core/color.h" #include "esphome/core/component.h" -#include -#include namespace esphome { diff --git a/esphome/components/growatt_solar/growatt_solar.h b/esphome/components/growatt_solar/growatt_solar.h index 006799813..d1b08b534 100644 --- a/esphome/components/growatt_solar/growatt_solar.h +++ b/esphome/components/growatt_solar/growatt_solar.h @@ -4,6 +4,8 @@ #include "esphome/components/sensor/sensor.h" #include "esphome/components/modbus/modbus.h" +#include + namespace esphome { namespace growatt_solar { diff --git a/esphome/components/havells_solar/havells_solar.h b/esphome/components/havells_solar/havells_solar.h index 2ccc8be3d..f3ac8fafc 100644 --- a/esphome/components/havells_solar/havells_solar.h +++ b/esphome/components/havells_solar/havells_solar.h @@ -4,6 +4,8 @@ #include "esphome/components/sensor/sensor.h" #include "esphome/components/modbus/modbus.h" +#include + namespace esphome { namespace havells_solar { diff --git a/esphome/components/http_request/http_request.h b/esphome/components/http_request/http_request.h index 4590163f2..eab3045fd 100644 --- a/esphome/components/http_request/http_request.h +++ b/esphome/components/http_request/http_request.h @@ -6,10 +6,12 @@ #include "esphome/core/automation.h" #include "esphome/core/component.h" #include "esphome/core/defines.h" + #include #include -#include #include +#include +#include #ifdef USE_ESP32 #include diff --git a/esphome/components/improv_serial/improv_serial_component.h b/esphome/components/improv_serial/improv_serial_component.h index 6be5704b7..3d8478252 100644 --- a/esphome/components/improv_serial/improv_serial_component.h +++ b/esphome/components/improv_serial/improv_serial_component.h @@ -6,6 +6,7 @@ #include "esphome/core/helpers.h" #include +#include #ifdef USE_ARDUINO #include diff --git a/esphome/components/lcd_base/lcd_display.h b/esphome/components/lcd_base/lcd_display.h index c8ba39f0d..c1dc54a9e 100644 --- a/esphome/components/lcd_base/lcd_display.h +++ b/esphome/components/lcd_base/lcd_display.h @@ -8,6 +8,7 @@ #endif #include +#include namespace esphome { namespace lcd_base { diff --git a/esphome/components/light/addressable_light_effect.h b/esphome/components/light/addressable_light_effect.h index d404898ed..0482cf53b 100644 --- a/esphome/components/light/addressable_light_effect.h +++ b/esphome/components/light/addressable_light_effect.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include "esphome/core/component.h" #include "esphome/components/light/light_state.h" diff --git a/esphome/components/light/base_light_effects.h b/esphome/components/light/base_light_effects.h index a6ab29930..6291aa061 100644 --- a/esphome/components/light/base_light_effects.h +++ b/esphome/components/light/base_light_effects.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include "light_effect.h" #include "esphome/core/automation.h" diff --git a/esphome/components/light/light_state.h b/esphome/components/light/light_state.h index 2834836c0..81f8be720 100644 --- a/esphome/components/light/light_state.h +++ b/esphome/components/light/light_state.h @@ -10,6 +10,8 @@ #include "light_traits.h" #include "light_transformer.h" +#include + namespace esphome { namespace light { diff --git a/esphome/components/logger/logger.h b/esphome/components/logger/logger.h index 0e12acacd..88d5e8ee9 100644 --- a/esphome/components/logger/logger.h +++ b/esphome/components/logger/logger.h @@ -1,10 +1,11 @@ #pragma once +#include +#include #include "esphome/core/automation.h" #include "esphome/core/component.h" -#include "esphome/core/helpers.h" #include "esphome/core/defines.h" -#include +#include "esphome/core/helpers.h" #ifdef USE_ARDUINO #if defined(USE_ESP8266) || defined(USE_ESP32) diff --git a/esphome/components/ltr390/ltr390.h b/esphome/components/ltr390/ltr390.h index d607a3e55..1bb7a8fa2 100644 --- a/esphome/components/ltr390/ltr390.h +++ b/esphome/components/ltr390/ltr390.h @@ -1,10 +1,11 @@ #pragma once +#include +#include +#include "esphome/components/i2c/i2c.h" +#include "esphome/components/sensor/sensor.h" #include "esphome/core/component.h" #include "esphome/core/optional.h" -#include "esphome/components/sensor/sensor.h" -#include "esphome/components/i2c/i2c.h" -#include namespace esphome { namespace ltr390 { diff --git a/esphome/components/max7219digit/max7219digit.h b/esphome/components/max7219digit/max7219digit.h index 3552c6b9d..361947869 100644 --- a/esphome/components/max7219digit/max7219digit.h +++ b/esphome/components/max7219digit/max7219digit.h @@ -5,6 +5,8 @@ #include "esphome/components/display/display_buffer.h" #include "esphome/components/spi/spi.h" +#include + #ifdef USE_TIME #include "esphome/components/time/real_time_clock.h" #endif diff --git a/esphome/components/modbus/modbus.h b/esphome/components/modbus/modbus.h index 629ab6dcc..95414ba09 100644 --- a/esphome/components/modbus/modbus.h +++ b/esphome/components/modbus/modbus.h @@ -3,6 +3,8 @@ #include "esphome/core/component.h" #include "esphome/components/uart/uart.h" +#include + namespace esphome { namespace modbus { diff --git a/esphome/components/modbus_controller/binary_sensor/modbus_binarysensor.h b/esphome/components/modbus_controller/binary_sensor/modbus_binarysensor.h index 3a8e175c2..3782416d4 100644 --- a/esphome/components/modbus_controller/binary_sensor/modbus_binarysensor.h +++ b/esphome/components/modbus_controller/binary_sensor/modbus_binarysensor.h @@ -4,6 +4,8 @@ #include "esphome/components/modbus_controller/modbus_controller.h" #include "esphome/core/component.h" +#include + namespace esphome { namespace modbus_controller { diff --git a/esphome/components/modbus_controller/number/modbus_number.h b/esphome/components/modbus_controller/number/modbus_number.h index aa5c8d150..9b447d831 100644 --- a/esphome/components/modbus_controller/number/modbus_number.h +++ b/esphome/components/modbus_controller/number/modbus_number.h @@ -4,6 +4,8 @@ #include "esphome/components/modbus_controller/modbus_controller.h" #include "esphome/core/component.h" +#include + namespace esphome { namespace modbus_controller { diff --git a/esphome/components/modbus_controller/output/modbus_output.cpp b/esphome/components/modbus_controller/output/modbus_output.cpp index b647312f5..79cd2d49c 100644 --- a/esphome/components/modbus_controller/output/modbus_output.cpp +++ b/esphome/components/modbus_controller/output/modbus_output.cpp @@ -1,7 +1,6 @@ -#include #include "modbus_output.h" -#include "esphome/core/log.h" #include "esphome/core/helpers.h" +#include "esphome/core/log.h" namespace esphome { namespace modbus_controller { diff --git a/esphome/components/modbus_controller/output/modbus_output.h b/esphome/components/modbus_controller/output/modbus_output.h index f089775c0..f424671cd 100644 --- a/esphome/components/modbus_controller/output/modbus_output.h +++ b/esphome/components/modbus_controller/output/modbus_output.h @@ -4,6 +4,8 @@ #include "esphome/components/modbus_controller/modbus_controller.h" #include "esphome/core/component.h" +#include + namespace esphome { namespace modbus_controller { diff --git a/esphome/components/modbus_controller/select/modbus_select.h b/esphome/components/modbus_controller/select/modbus_select.h index 2a31dfd7c..ffbbba390 100644 --- a/esphome/components/modbus_controller/select/modbus_select.h +++ b/esphome/components/modbus_controller/select/modbus_select.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include "esphome/components/modbus_controller/modbus_controller.h" #include "esphome/components/select/select.h" diff --git a/esphome/components/modbus_controller/sensor/modbus_sensor.h b/esphome/components/modbus_controller/sensor/modbus_sensor.h index ababcc33d..848d5f63d 100644 --- a/esphome/components/modbus_controller/sensor/modbus_sensor.h +++ b/esphome/components/modbus_controller/sensor/modbus_sensor.h @@ -4,6 +4,8 @@ #include "esphome/components/sensor/sensor.h" #include "esphome/core/component.h" +#include + namespace esphome { namespace modbus_controller { diff --git a/esphome/components/modbus_controller/switch/modbus_switch.h b/esphome/components/modbus_controller/switch/modbus_switch.h index eccfc3b64..0f2d8f6e5 100644 --- a/esphome/components/modbus_controller/switch/modbus_switch.h +++ b/esphome/components/modbus_controller/switch/modbus_switch.h @@ -4,6 +4,8 @@ #include "esphome/components/switch/switch.h" #include "esphome/core/component.h" +#include + namespace esphome { namespace modbus_controller { diff --git a/esphome/components/modbus_controller/text_sensor/modbus_textsensor.h b/esphome/components/modbus_controller/text_sensor/modbus_textsensor.h index c52c6cd07..2e3be7203 100644 --- a/esphome/components/modbus_controller/text_sensor/modbus_textsensor.h +++ b/esphome/components/modbus_controller/text_sensor/modbus_textsensor.h @@ -4,6 +4,8 @@ #include "esphome/components/text_sensor/text_sensor.h" #include "esphome/core/component.h" +#include + namespace esphome { namespace modbus_controller { diff --git a/esphome/components/mopeka_ble/mopeka_ble.h b/esphome/components/mopeka_ble/mopeka_ble.h index 7b797a3bb..f88bad4f3 100644 --- a/esphome/components/mopeka_ble/mopeka_ble.h +++ b/esphome/components/mopeka_ble/mopeka_ble.h @@ -3,6 +3,8 @@ #include "esphome/core/component.h" #include "esphome/components/esp32_ble_tracker/esp32_ble_tracker.h" +#include + #ifdef USE_ESP32 namespace esphome { diff --git a/esphome/components/mopeka_pro_check/mopeka_pro_check.h b/esphome/components/mopeka_pro_check/mopeka_pro_check.h index dfdce9353..e6cc1fd6f 100644 --- a/esphome/components/mopeka_pro_check/mopeka_pro_check.h +++ b/esphome/components/mopeka_pro_check/mopeka_pro_check.h @@ -4,6 +4,8 @@ #include "esphome/components/sensor/sensor.h" #include "esphome/components/esp32_ble_tracker/esp32_ble_tracker.h" +#include + #ifdef USE_ESP32 namespace esphome { diff --git a/esphome/components/mpr121/mpr121.h b/esphome/components/mpr121/mpr121.h index 3388f0492..8b7735fa2 100644 --- a/esphome/components/mpr121/mpr121.h +++ b/esphome/components/mpr121/mpr121.h @@ -4,6 +4,8 @@ #include "esphome/components/i2c/i2c.h" #include "esphome/components/binary_sensor/binary_sensor.h" +#include + namespace esphome { namespace mpr121 { diff --git a/esphome/components/mqtt/mqtt_client.h b/esphome/components/mqtt/mqtt_client.h index 031065514..188a027b9 100644 --- a/esphome/components/mqtt/mqtt_client.h +++ b/esphome/components/mqtt/mqtt_client.h @@ -16,6 +16,8 @@ #endif #include "lwip/ip_addr.h" +#include + namespace esphome { namespace mqtt { diff --git a/esphome/components/nextion/nextion.h b/esphome/components/nextion/nextion.h index ad696d0e8..86610ef56 100644 --- a/esphome/components/nextion/nextion.h +++ b/esphome/components/nextion/nextion.h @@ -1,6 +1,8 @@ #pragma once #include +#include + #include "esphome/core/defines.h" #include "esphome/components/uart/uart.h" #include "nextion_base.h" diff --git a/esphome/components/nextion/nextion_component_base.h b/esphome/components/nextion/nextion_component_base.h index 71ad803bc..e0ef8f93b 100644 --- a/esphome/components/nextion/nextion_component_base.h +++ b/esphome/components/nextion/nextion_component_base.h @@ -1,5 +1,6 @@ #pragma once #include +#include #include "esphome/core/defines.h" namespace esphome { diff --git a/esphome/components/nfc/ndef_message.h b/esphome/components/nfc/ndef_message.h index 5e44a0601..2e81fb216 100644 --- a/esphome/components/nfc/ndef_message.h +++ b/esphome/components/nfc/ndef_message.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include "esphome/core/helpers.h" #include "esphome/core/log.h" diff --git a/esphome/components/nfc/ndef_record.h b/esphome/components/nfc/ndef_record.h index 4fab1c03e..27083fdac 100644 --- a/esphome/components/nfc/ndef_record.h +++ b/esphome/components/nfc/ndef_record.h @@ -3,6 +3,8 @@ #include "esphome/core/log.h" #include "esphome/core/helpers.h" +#include + namespace esphome { namespace nfc { diff --git a/esphome/components/nfc/ndef_record_text.h b/esphome/components/nfc/ndef_record_text.h index 94375cc86..aa8f13bb4 100644 --- a/esphome/components/nfc/ndef_record_text.h +++ b/esphome/components/nfc/ndef_record_text.h @@ -4,6 +4,8 @@ #include "esphome/core/helpers.h" #include "ndef_record.h" +#include + namespace esphome { namespace nfc { diff --git a/esphome/components/nfc/ndef_record_uri.h b/esphome/components/nfc/ndef_record_uri.h index 4c21724c5..fc8f2d9a7 100644 --- a/esphome/components/nfc/ndef_record_uri.h +++ b/esphome/components/nfc/ndef_record_uri.h @@ -4,6 +4,8 @@ #include "esphome/core/helpers.h" #include "ndef_record.h" +#include + namespace esphome { namespace nfc { diff --git a/esphome/components/nfc/nfc.h b/esphome/components/nfc/nfc.h index d48213105..1a4e8f1c1 100644 --- a/esphome/components/nfc/nfc.h +++ b/esphome/components/nfc/nfc.h @@ -6,6 +6,8 @@ #include "ndef_message.h" #include "nfc_tag.h" +#include + namespace esphome { namespace nfc { diff --git a/esphome/components/nfc/nfc_tag.h b/esphome/components/nfc/nfc_tag.h index 2dfc43142..58875a744 100644 --- a/esphome/components/nfc/nfc_tag.h +++ b/esphome/components/nfc/nfc_tag.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include "esphome/core/log.h" #include "esphome/core/helpers.h" diff --git a/esphome/components/partition/light_partition.h b/esphome/components/partition/light_partition.h index 5790fd2b3..bd90b4c4f 100644 --- a/esphome/components/partition/light_partition.h +++ b/esphome/components/partition/light_partition.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include "esphome/core/component.h" #include "esphome/components/light/addressable_light.h" diff --git a/esphome/components/pid/pid_autotuner.h b/esphome/components/pid/pid_autotuner.h index 7dfe0c056..88716d2b8 100644 --- a/esphome/components/pid/pid_autotuner.h +++ b/esphome/components/pid/pid_autotuner.h @@ -5,6 +5,8 @@ #include "pid_controller.h" #include "pid_simulator.h" +#include + namespace esphome { namespace pid { diff --git a/esphome/components/pid/pid_simulator.h b/esphome/components/pid/pid_simulator.h index fe145b733..30222f2f7 100644 --- a/esphome/components/pid/pid_simulator.h +++ b/esphome/components/pid/pid_simulator.h @@ -5,6 +5,8 @@ #include "esphome/components/sensor/sensor.h" #include "esphome/components/output/float_output.h" +#include + namespace esphome { namespace pid { diff --git a/esphome/components/pipsolar/output/pipsolar_output.h b/esphome/components/pipsolar/output/pipsolar_output.h index fe783cf03..29b2d116f 100644 --- a/esphome/components/pipsolar/output/pipsolar_output.h +++ b/esphome/components/pipsolar/output/pipsolar_output.h @@ -4,6 +4,8 @@ #include "esphome/components/output/float_output.h" #include "esphome/core/component.h" +#include + namespace esphome { namespace pipsolar { diff --git a/esphome/components/pn532/pn532.h b/esphome/components/pn532/pn532.h index 4f688dacc..fee94a29b 100644 --- a/esphome/components/pn532/pn532.h +++ b/esphome/components/pn532/pn532.h @@ -7,6 +7,8 @@ #include "esphome/components/nfc/nfc.h" #include "esphome/components/nfc/automation.h" +#include + namespace esphome { namespace pn532 { diff --git a/esphome/components/pn532_i2c/pn532_i2c.h b/esphome/components/pn532_i2c/pn532_i2c.h index 296d73e04..95cf8eeb3 100644 --- a/esphome/components/pn532_i2c/pn532_i2c.h +++ b/esphome/components/pn532_i2c/pn532_i2c.h @@ -4,6 +4,8 @@ #include "esphome/components/pn532/pn532.h" #include "esphome/components/i2c/i2c.h" +#include + namespace esphome { namespace pn532_i2c { diff --git a/esphome/components/pn532_spi/pn532_spi.h b/esphome/components/pn532_spi/pn532_spi.h index d98bd447c..2d8312813 100644 --- a/esphome/components/pn532_spi/pn532_spi.h +++ b/esphome/components/pn532_spi/pn532_spi.h @@ -4,6 +4,8 @@ #include "esphome/components/pn532/pn532.h" #include "esphome/components/spi/spi.h" +#include + namespace esphome { namespace pn532_spi { diff --git a/esphome/components/pvvx_mithermometer/pvvx_mithermometer.h b/esphome/components/pvvx_mithermometer/pvvx_mithermometer.h index 9b8e2d9cf..99455a166 100644 --- a/esphome/components/pvvx_mithermometer/pvvx_mithermometer.h +++ b/esphome/components/pvvx_mithermometer/pvvx_mithermometer.h @@ -4,6 +4,8 @@ #include "esphome/components/sensor/sensor.h" #include "esphome/components/esp32_ble_tracker/esp32_ble_tracker.h" +#include + #ifdef USE_ESP32 namespace esphome { diff --git a/esphome/components/pzemac/pzemac.h b/esphome/components/pzemac/pzemac.h index 8f2cf1460..7a229b49c 100644 --- a/esphome/components/pzemac/pzemac.h +++ b/esphome/components/pzemac/pzemac.h @@ -5,6 +5,8 @@ #include "esphome/components/sensor/sensor.h" #include "esphome/components/modbus/modbus.h" +#include + namespace esphome { namespace pzemac { diff --git a/esphome/components/pzemdc/pzemdc.h b/esphome/components/pzemdc/pzemdc.h index a78a48a6f..dff904476 100644 --- a/esphome/components/pzemdc/pzemdc.h +++ b/esphome/components/pzemdc/pzemdc.h @@ -4,6 +4,8 @@ #include "esphome/components/sensor/sensor.h" #include "esphome/components/modbus/modbus.h" +#include + namespace esphome { namespace pzemdc { diff --git a/esphome/components/rc522/rc522.h b/esphome/components/rc522/rc522.h index d853d2f5f..5eea3c665 100644 --- a/esphome/components/rc522/rc522.h +++ b/esphome/components/rc522/rc522.h @@ -5,6 +5,8 @@ #include "esphome/core/automation.h" #include "esphome/components/binary_sensor/binary_sensor.h" +#include + namespace esphome { namespace rc522 { diff --git a/esphome/components/rdm6300/rdm6300.h b/esphome/components/rdm6300/rdm6300.h index 13df40075..0aeabef2b 100644 --- a/esphome/components/rdm6300/rdm6300.h +++ b/esphome/components/rdm6300/rdm6300.h @@ -5,6 +5,8 @@ #include "esphome/components/binary_sensor/binary_sensor.h" #include "esphome/components/uart/uart.h" +#include + namespace esphome { namespace rdm6300 { diff --git a/esphome/components/remote_base/aeha_protocol.h b/esphome/components/remote_base/aeha_protocol.h index 6cb470650..c41f3f8df 100644 --- a/esphome/components/remote_base/aeha_protocol.h +++ b/esphome/components/remote_base/aeha_protocol.h @@ -2,6 +2,8 @@ #include "remote_base.h" +#include + namespace esphome { namespace remote_base { diff --git a/esphome/components/remote_base/midea_protocol.h b/esphome/components/remote_base/midea_protocol.h index 2bcaa879c..a7f5636b0 100644 --- a/esphome/components/remote_base/midea_protocol.h +++ b/esphome/components/remote_base/midea_protocol.h @@ -5,6 +5,7 @@ #include "remote_base.h" #include #include +#include namespace esphome { namespace remote_base { diff --git a/esphome/components/remote_base/pronto_protocol.h b/esphome/components/remote_base/pronto_protocol.h index 291bb8a99..8c491257d 100644 --- a/esphome/components/remote_base/pronto_protocol.h +++ b/esphome/components/remote_base/pronto_protocol.h @@ -3,6 +3,8 @@ #include "esphome/core/component.h" #include "remote_base.h" +#include + namespace esphome { namespace remote_base { diff --git a/esphome/components/remote_base/raw_protocol.h b/esphome/components/remote_base/raw_protocol.h index 054f02ff7..dc22282d1 100644 --- a/esphome/components/remote_base/raw_protocol.h +++ b/esphome/components/remote_base/raw_protocol.h @@ -3,6 +3,8 @@ #include "esphome/core/component.h" #include "remote_base.h" +#include + namespace esphome { namespace remote_base { diff --git a/esphome/components/remote_base/remote_base.h b/esphome/components/remote_base/remote_base.h index 3c76da84e..fdb6d45e5 100644 --- a/esphome/components/remote_base/remote_base.h +++ b/esphome/components/remote_base/remote_base.h @@ -1,4 +1,5 @@ #include +#include #pragma once diff --git a/esphome/components/remote_transmitter/remote_transmitter.h b/esphome/components/remote_transmitter/remote_transmitter.h index a4235e875..560d83802 100644 --- a/esphome/components/remote_transmitter/remote_transmitter.h +++ b/esphome/components/remote_transmitter/remote_transmitter.h @@ -3,6 +3,8 @@ #include "esphome/core/component.h" #include "esphome/components/remote_base/remote_base.h" +#include + namespace esphome { namespace remote_transmitter { diff --git a/esphome/components/rf_bridge/rf_bridge.h b/esphome/components/rf_bridge/rf_bridge.h index 9156d995b..fe6dd96b3 100644 --- a/esphome/components/rf_bridge/rf_bridge.h +++ b/esphome/components/rf_bridge/rf_bridge.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include "esphome/core/component.h" #include "esphome/components/uart/uart.h" diff --git a/esphome/components/rp2040/preferences.cpp b/esphome/components/rp2040/preferences.cpp index c98344541..e7aa9ab28 100644 --- a/esphome/components/rp2040/preferences.cpp +++ b/esphome/components/rp2040/preferences.cpp @@ -8,6 +8,8 @@ #include "preferences.h" #include +#include + #include "esphome/core/helpers.h" #include "esphome/core/log.h" #include "esphome/core/preferences.h" diff --git a/esphome/components/sdm_meter/sdm_meter.h b/esphome/components/sdm_meter/sdm_meter.h index 66f0fb8c5..f8a3014a8 100644 --- a/esphome/components/sdm_meter/sdm_meter.h +++ b/esphome/components/sdm_meter/sdm_meter.h @@ -4,6 +4,8 @@ #include "esphome/components/sensor/sensor.h" #include "esphome/components/modbus/modbus.h" +#include + namespace esphome { namespace sdm_meter { diff --git a/esphome/components/selec_meter/selec_meter.h b/esphome/components/selec_meter/selec_meter.h index 0477cd2a6..730791c91 100644 --- a/esphome/components/selec_meter/selec_meter.h +++ b/esphome/components/selec_meter/selec_meter.h @@ -4,6 +4,8 @@ #include "esphome/components/sensor/sensor.h" #include "esphome/components/modbus/modbus.h" +#include + namespace esphome { namespace selec_meter { diff --git a/esphome/components/sensirion_common/i2c_sensirion.h b/esphome/components/sensirion_common/i2c_sensirion.h index 3f0282a5d..24b706cf3 100644 --- a/esphome/components/sensirion_common/i2c_sensirion.h +++ b/esphome/components/sensirion_common/i2c_sensirion.h @@ -1,6 +1,8 @@ #pragma once #include "esphome/components/i2c/i2c.h" +#include + namespace esphome { namespace sensirion_common { diff --git a/esphome/components/sensor/filter.h b/esphome/components/sensor/filter.h index 6344d3466..c17d14583 100644 --- a/esphome/components/sensor/filter.h +++ b/esphome/components/sensor/filter.h @@ -1,9 +1,10 @@ #pragma once -#include "esphome/core/component.h" -#include "esphome/core/helpers.h" #include #include +#include +#include "esphome/core/component.h" +#include "esphome/core/helpers.h" namespace esphome { namespace sensor { diff --git a/esphome/components/sensor/sensor.h b/esphome/components/sensor/sensor.h index ba9edd68d..958230cb3 100644 --- a/esphome/components/sensor/sensor.h +++ b/esphome/components/sensor/sensor.h @@ -6,6 +6,8 @@ #include "esphome/core/helpers.h" #include "esphome/components/sensor/filter.h" +#include + namespace esphome { namespace sensor { diff --git a/esphome/components/sprinkler/sprinkler.h b/esphome/components/sprinkler/sprinkler.h index acd168d79..625118d9e 100644 --- a/esphome/components/sprinkler/sprinkler.h +++ b/esphome/components/sprinkler/sprinkler.h @@ -5,6 +5,8 @@ #include "esphome/core/hal.h" #include "esphome/components/switch/switch.h" +#include + namespace esphome { namespace sprinkler { diff --git a/esphome/components/sx1509/sx1509.h b/esphome/components/sx1509/sx1509.h index 5f0697b53..50230b108 100644 --- a/esphome/components/sx1509/sx1509.h +++ b/esphome/components/sx1509/sx1509.h @@ -6,6 +6,8 @@ #include "sx1509_gpio_pin.h" #include "sx1509_registers.h" +#include + namespace esphome { namespace sx1509 { diff --git a/esphome/components/teleinfo/teleinfo.h b/esphome/components/teleinfo/teleinfo.h index 2be34cfb7..0c6217853 100644 --- a/esphome/components/teleinfo/teleinfo.h +++ b/esphome/components/teleinfo/teleinfo.h @@ -3,6 +3,8 @@ #include "esphome/core/component.h" #include "esphome/components/uart/uart.h" +#include + namespace esphome { namespace teleinfo { /* diff --git a/esphome/components/text_sensor/filter.h b/esphome/components/text_sensor/filter.h index 38f35e617..4e3653294 100644 --- a/esphome/components/text_sensor/filter.h +++ b/esphome/components/text_sensor/filter.h @@ -5,6 +5,7 @@ #include #include #include +#include namespace esphome { namespace text_sensor { diff --git a/esphome/components/text_sensor/text_sensor.h b/esphome/components/text_sensor/text_sensor.h index 340f7ff9e..a7673ed9f 100644 --- a/esphome/components/text_sensor/text_sensor.h +++ b/esphome/components/text_sensor/text_sensor.h @@ -5,6 +5,8 @@ #include "esphome/core/helpers.h" #include "esphome/components/text_sensor/filter.h" +#include + namespace esphome { namespace text_sensor { diff --git a/esphome/components/thermostat/thermostat_climate.h b/esphome/components/thermostat/thermostat_climate.h index 68cbb17e3..124f95de3 100644 --- a/esphome/components/thermostat/thermostat_climate.h +++ b/esphome/components/thermostat/thermostat_climate.h @@ -4,7 +4,9 @@ #include "esphome/core/automation.h" #include "esphome/components/climate/climate.h" #include "esphome/components/sensor/sensor.h" + #include +#include namespace esphome { namespace thermostat { diff --git a/esphome/components/time/automation.h b/esphome/components/time/automation.h index 6167aac4f..e97413e42 100644 --- a/esphome/components/time/automation.h +++ b/esphome/components/time/automation.h @@ -4,6 +4,8 @@ #include "esphome/core/automation.h" #include "real_time_clock.h" +#include + namespace esphome { namespace time { diff --git a/esphome/components/tm1637/tm1637.h b/esphome/components/tm1637/tm1637.h index 0a77acaab..2fb572bc5 100644 --- a/esphome/components/tm1637/tm1637.h +++ b/esphome/components/tm1637/tm1637.h @@ -4,6 +4,8 @@ #include "esphome/core/defines.h" #include "esphome/core/hal.h" +#include + #ifdef USE_TIME #include "esphome/components/time/real_time_clock.h" #endif diff --git a/esphome/components/tm1638/tm1638.h b/esphome/components/tm1638/tm1638.h index 44160ad22..2e1ac6fad 100644 --- a/esphome/components/tm1638/tm1638.h +++ b/esphome/components/tm1638/tm1638.h @@ -5,6 +5,8 @@ #include "esphome/core/automation.h" #include "esphome/core/hal.h" +#include + #ifdef USE_TIME #include "esphome/components/time/real_time_clock.h" #endif diff --git a/esphome/components/toshiba/toshiba.cpp b/esphome/components/toshiba/toshiba.cpp index c7a5b7285..104e885aa 100644 --- a/esphome/components/toshiba/toshiba.cpp +++ b/esphome/components/toshiba/toshiba.cpp @@ -1,5 +1,7 @@ #include "toshiba.h" +#include + namespace esphome { namespace toshiba { diff --git a/esphome/components/ttp229_bsf/ttp229_bsf.h b/esphome/components/ttp229_bsf/ttp229_bsf.h index 59749a4fa..2663afcec 100644 --- a/esphome/components/ttp229_bsf/ttp229_bsf.h +++ b/esphome/components/ttp229_bsf/ttp229_bsf.h @@ -4,6 +4,8 @@ #include "esphome/core/hal.h" #include "esphome/components/binary_sensor/binary_sensor.h" +#include + namespace esphome { namespace ttp229_bsf { diff --git a/esphome/components/ttp229_lsf/ttp229_lsf.h b/esphome/components/ttp229_lsf/ttp229_lsf.h index 2064d9b65..f8775a17f 100644 --- a/esphome/components/ttp229_lsf/ttp229_lsf.h +++ b/esphome/components/ttp229_lsf/ttp229_lsf.h @@ -4,6 +4,8 @@ #include "esphome/components/binary_sensor/binary_sensor.h" #include "esphome/components/i2c/i2c.h" +#include + namespace esphome { namespace ttp229_lsf { diff --git a/esphome/components/tuya/automation.h b/esphome/components/tuya/automation.h index d7706e1d6..8d91cfdfb 100644 --- a/esphome/components/tuya/automation.h +++ b/esphome/components/tuya/automation.h @@ -4,6 +4,8 @@ #include "esphome/core/automation.h" #include "tuya.h" +#include + namespace esphome { namespace tuya { diff --git a/esphome/components/tuya/select/tuya_select.h b/esphome/components/tuya/select/tuya_select.h index ab233dc50..6a7e5c7ed 100644 --- a/esphome/components/tuya/select/tuya_select.h +++ b/esphome/components/tuya/select/tuya_select.h @@ -4,6 +4,8 @@ #include "esphome/components/tuya/tuya.h" #include "esphome/components/select/select.h" +#include + namespace esphome { namespace tuya { diff --git a/esphome/components/tuya/tuya.h b/esphome/components/tuya/tuya.h index 1f21b09c0..5839dfbec 100644 --- a/esphome/components/tuya/tuya.h +++ b/esphome/components/tuya/tuya.h @@ -9,6 +9,8 @@ #include "esphome/components/time/real_time_clock.h" #endif +#include + namespace esphome { namespace tuya { diff --git a/esphome/components/tx20/tx20.cpp b/esphome/components/tx20/tx20.cpp index fefcc8f4d..a2a3baa46 100644 --- a/esphome/components/tx20/tx20.cpp +++ b/esphome/components/tx20/tx20.cpp @@ -2,6 +2,8 @@ #include "esphome/core/log.h" #include "esphome/core/helpers.h" +#include + namespace esphome { namespace tx20 { diff --git a/esphome/components/uart/automation.h b/esphome/components/uart/automation.h index 9686f9441..b6a50ea22 100644 --- a/esphome/components/uart/automation.h +++ b/esphome/components/uart/automation.h @@ -3,6 +3,8 @@ #include "uart.h" #include "esphome/core/automation.h" +#include + namespace esphome { namespace uart { diff --git a/esphome/components/uart/switch/uart_switch.h b/esphome/components/uart/switch/uart_switch.h index 4c82d5680..4f24d76d0 100644 --- a/esphome/components/uart/switch/uart_switch.h +++ b/esphome/components/uart/switch/uart_switch.h @@ -4,6 +4,8 @@ #include "esphome/components/uart/uart.h" #include "esphome/components/switch/switch.h" +#include + namespace esphome { namespace uart { diff --git a/esphome/components/web_server_base/web_server_base.h b/esphome/components/web_server_base/web_server_base.h index cdabe66d4..f6d3a84f8 100644 --- a/esphome/components/web_server_base/web_server_base.h +++ b/esphome/components/web_server_base/web_server_base.h @@ -4,6 +4,8 @@ #include #include +#include + #include "esphome/core/component.h" #include diff --git a/esphome/components/wifi/wifi_component.h b/esphome/components/wifi/wifi_component.h index dba0d4872..544cb3dc6 100644 --- a/esphome/components/wifi/wifi_component.h +++ b/esphome/components/wifi/wifi_component.h @@ -5,7 +5,9 @@ #include "esphome/core/automation.h" #include "esphome/core/helpers.h" #include "esphome/components/network/ip_address.h" + #include +#include #ifdef USE_ESP32_FRAMEWORK_ARDUINO #include diff --git a/esphome/components/xiaomi_ble/xiaomi_ble.h b/esphome/components/xiaomi_ble/xiaomi_ble.h index 399bef83b..c1086605d 100644 --- a/esphome/components/xiaomi_ble/xiaomi_ble.h +++ b/esphome/components/xiaomi_ble/xiaomi_ble.h @@ -3,6 +3,8 @@ #include "esphome/components/esp32_ble_tracker/esp32_ble_tracker.h" #include "esphome/core/component.h" +#include + #ifdef USE_ESP32 namespace esphome { diff --git a/esphome/components/xiaomi_miscale/xiaomi_miscale.h b/esphome/components/xiaomi_miscale/xiaomi_miscale.h index cff61f153..4523bbc82 100644 --- a/esphome/components/xiaomi_miscale/xiaomi_miscale.h +++ b/esphome/components/xiaomi_miscale/xiaomi_miscale.h @@ -4,6 +4,8 @@ #include "esphome/components/sensor/sensor.h" #include "esphome/components/esp32_ble_tracker/esp32_ble_tracker.h" +#include + #ifdef USE_ESP32 namespace esphome { diff --git a/esphome/core/base_automation.h b/esphome/core/base_automation.h index 6ac6e596c..b36a64b82 100644 --- a/esphome/core/base_automation.h +++ b/esphome/core/base_automation.h @@ -3,6 +3,8 @@ #include "esphome/core/automation.h" #include "esphome/core/component.h" +#include + namespace esphome { template class AndCondition : public Condition {