diff --git a/esphome/core/posix_tz.cpp b/esphome/components/time/posix_tz.cpp similarity index 100% rename from esphome/core/posix_tz.cpp rename to esphome/components/time/posix_tz.cpp diff --git a/esphome/core/posix_tz.h b/esphome/components/time/posix_tz.h similarity index 100% rename from esphome/core/posix_tz.h rename to esphome/components/time/posix_tz.h diff --git a/esphome/components/time/real_time_clock.h b/esphome/components/time/real_time_clock.h index 055fa7f668..0f9ec1e993 100644 --- a/esphome/components/time/real_time_clock.h +++ b/esphome/components/time/real_time_clock.h @@ -7,7 +7,7 @@ #include "esphome/core/helpers.h" #include "esphome/core/time.h" #ifdef USE_TIME_TIMEZONE -#include "esphome/core/posix_tz.h" +#include "posix_tz.h" #endif namespace esphome::time { diff --git a/tests/components/time/posix_tz_parser.cpp b/tests/components/time/posix_tz_parser.cpp index e977ca53e9..6c1fea36e5 100644 --- a/tests/components/time/posix_tz_parser.cpp +++ b/tests/components/time/posix_tz_parser.cpp @@ -5,7 +5,7 @@ #include #include #include -#include "esphome/core/posix_tz.h" +#include "esphome/components/time/posix_tz.h" namespace esphome::time::testing {