mirror of
https://github.com/esphome/esphome.git
synced 2026-10-03 09:46:03 +00:00
make time components polling components (#1443)
* make real time clock components polling components * add test
This commit is contained in:
@@ -15,7 +15,7 @@ RealTimeClock::RealTimeClock() = default;
|
||||
void RealTimeClock::call_setup() {
|
||||
setenv("TZ", this->timezone_.c_str(), 1);
|
||||
tzset();
|
||||
this->setup();
|
||||
PollingComponent::call_setup();
|
||||
}
|
||||
void RealTimeClock::synchronize_epoch_(uint32_t epoch) {
|
||||
struct timeval timev {
|
||||
|
||||
Reference in New Issue
Block a user