From 0b5838ca8e056579c19f5fd6edfd76f499b89239 Mon Sep 17 00:00:00 2001 From: Rebbe Pod <66928914+RebbePod@users.noreply.github.com> Date: Thu, 22 Aug 2024 02:39:48 -0400 Subject: [PATCH] Update real_time_clock.h --- esphome/components/time/real_time_clock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/time/real_time_clock.h b/esphome/components/time/real_time_clock.h index 4dea7f768b..46550fac32 100644 --- a/esphome/components/time/real_time_clock.h +++ b/esphome/components/time/real_time_clock.h @@ -23,7 +23,7 @@ class RealTimeClock : public PollingComponent { /// Set the time zone. void set_timezone(const std::string &tz) { this->timezone_ = tz; } - void set_time(uint32_t epoch) { this->synchronize_epoch_(epoch); } + void set_epoch(uint32_t epoch) { this->synchronize_epoch_(epoch); } /// Get the time zone currently in use. std::string get_timezone() { return this->timezone_; }