mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 18:24:13 +01:00
Fix units for refresh: never (#4048)
This commit is contained in:
parent
ec576bf9f9
commit
294901fbe9
1 changed files with 1 additions and 1 deletions
|
@ -1678,7 +1678,7 @@ def source_refresh(value: str):
|
||||||
if value.lower() == "always":
|
if value.lower() == "always":
|
||||||
return source_refresh("0s")
|
return source_refresh("0s")
|
||||||
if value.lower() == "never":
|
if value.lower() == "never":
|
||||||
return source_refresh("1000y")
|
return source_refresh("365250d")
|
||||||
return positive_time_period_seconds(value)
|
return positive_time_period_seconds(value)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue