diff --git a/esphome/components/addressable_light/addressable_light_display.h b/esphome/components/addressable_light/addressable_light_display.h index dfafe9d98d..8893c39be6 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 418ad1c9e7..c0c1cc4db8 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 059436d142..17d5a910d8 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 028fb80175..b2076635b0 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 1aefa31400..8e69a77475 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 90cfe751b6..f04181e5b2 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 11cd4330ce..fea219ecb9 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 df6f6924aa..673bcf5693 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 9398c02bcf..31fb77ac7f 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 f1479710a7..fb757dfdf8 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 31bf1a5565..de527d1070 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 b0c39a2c9b..730ded3f94 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 59068634af..64a33f6e34 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 a880be9623..a1d6f95009 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 98c19dedf8..ef38333698 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 54f5f298fc..ceca94c86a 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 d3d037572a..b11a010ee4 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 129b042277..b33e084b70 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 06b15c0db5..4a12742627 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 a1433deb0f..fa0ed622fa 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 314b9b0832..b7d5458d9e 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 250d83f69f..37876f7115 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 71f271bc86..58330b9d54 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 744e99b889..c2c83ebe97 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 1b55d51e29..4624642420 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 5ef3658e5d..d8f4fbc109 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 186e7473fe..9657e4b44d 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 f1e9c7665e..13732c00b6 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 3f5760e4cf..3b34019a7a 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 37c098283a..b21bc02e54 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 44915368ee..d4fe84fe46 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 d2d3f2ed77..41052b3ffd 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 76f79ee55c..6621d02cae 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 8df25fce24..80f5f8a8e2 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 d290b282fc..d56516f1fd 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 90cd8dbddc..38fd6a5ba4 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 04f2212e0e..7b072f5fae 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 d275eeab01..f82e854090 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 16cc897238..2766c931a7 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 4fbf7b12e1..153a224378 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 f3a2b3cb3c..f1dcc337e8 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 45639f2f63..1a142c94b6 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 d49e4703a7..c954a14654 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 1bd20f16ae..8ee5a8225a 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 e50418a768..96d02a1e8c 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 99f8060efa..b28ba3a851 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 40cda145ca..0626fb0b0e 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 15d2d1c7c4..69c1167f54 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 0067998133..d1b08b534a 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 2ccc8be3d4..f3ac8fafcf 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 4590163f2c..eab3045fdc 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 6be5704b71..3d8478252d 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 c8ba39f0d4..c1dc54a9ed 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 d404898edf..0482cf53b9 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 a6ab299308..6291aa0610 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 2834836c0e..81f8be7207 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 0e12acacd8..88d5e8ee97 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 d607a3e55f..1bb7a8fa22 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 3552c6b9d5..3619478697 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 629ab6dcce..95414ba090 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 3a8e175c26..3782416d4f 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 aa5c8d1500..9b447d831c 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 b647312f52..79cd2d49c2 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 f089775c0c..f424671cd1 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 2a31dfd7cc..ffbbba390b 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 ababcc33d2..848d5f63de 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 eccfc3b64a..0f2d8f6e59 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 c52c6cd072..2e3be72034 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 7b797a3bbe..f88bad4f3a 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 dfdce9353e..e6cc1fd6f1 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 3388f04926..8b7735fa28 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 0310655146..188a027b91 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 ad696d0e83..86610ef564 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 71ad803bc4..e0ef8f93bc 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 5e44a06011..2e81fb216c 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 4fab1c03e4..27083fdaca 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 94375cc860..aa8f13bb4b 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 4c21724c5c..fc8f2d9a73 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 d482131057..1a4e8f1c1d 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 2dfc431428..58875a744d 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 5790fd2b39..bd90b4c4f1 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 7dfe0c056d..88716d2b89 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 fe145b7330..30222f2f7a 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 fe783cf034..29b2d116f2 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 4f688dacc2..fee94a29b8 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 296d73e042..95cf8eeb36 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 d98bd447c8..2d8312813d 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 9b8e2d9cfe..99455a1663 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 8f2cf1460d..7a229b49ce 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 a78a48a6fb..dff904476b 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 d853d2f5ff..5eea3c665e 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 13df400754..0aeabef2bc 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 6cb4706506..c41f3f8df1 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 2bcaa879c4..a7f5636b06 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 291bb8a99b..8c491257d3 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 054f02ff7c..dc22282d1c 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 3c76da84e3..fdb6d45e5f 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 a4235e875f..560d83802e 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 9156d995bc..fe6dd96b38 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 c98344541c..e7aa9ab28d 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 66f0fb8c5e..f8a3014a89 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 0477cd2a62..730791c91b 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 3f0282a5d4..24b706cf36 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 6344d34661..c17d14583b 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 ba9edd68d0..958230cb3c 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 acd168d791..625118d9e5 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 5f0697b534..50230b1086 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 2be34cfb78..0c6217853e 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 38f35e6172..4e36532945 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 340f7ff9ed..a7673ed9ff 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 68cbb17e34..124f95de33 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 6167aac4f7..e97413e420 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 0a77acaabe..2fb572bc55 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 44160ad227..2e1ac6fad3 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 c7a5b72852..104e885aab 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 59749a4fa7..2663afcec9 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 2064d9b654..f8775a17f0 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 d7706e1d60..8d91cfdfbf 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 ab233dc501..6a7e5c7ed0 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 1f21b09c0c..5839dfbec0 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 fefcc8f4d5..a2a3baa46e 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 9686f94413..b6a50ea22d 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 4c82d5680a..4f24d76d0c 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 cdabe66d44..f6d3a84f89 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 dba0d48724..544cb3dc61 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 399bef83b8..c1086605d1 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 cff61f153b..4523bbc82b 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 6ac6e596c1..b36a64b82a 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 {