From 81b6562c2501a17372264754005f98c2af02f74c Mon Sep 17 00:00:00 2001 From: Brian Kaufman Date: Wed, 23 Nov 2022 17:31:37 -0700 Subject: [PATCH] Fix units for refresh: never (#4048) --- esphome/config_validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/config_validation.py b/esphome/config_validation.py index 90018b4d56..7498f7c505 100644 --- a/esphome/config_validation.py +++ b/esphome/config_validation.py @@ -1680,7 +1680,7 @@ def source_refresh(value: str): if value.lower() == "always": return source_refresh("0s") if value.lower() == "never": - return source_refresh("1000y") + return source_refresh("365250d") return positive_time_period_seconds(value)