From 5f63612b6633cc457e7f79777d4e790e88c31dfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Beye?= Date: Mon, 26 May 2025 21:20:18 +0200 Subject: [PATCH] Increase resolution of sun updates around sunrise/sundown (#140403) --- homeassistant/components/sun/entity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/sun/entity.py b/homeassistant/components/sun/entity.py index 925845c8b4d..4070190e52a 100644 --- a/homeassistant/components/sun/entity.py +++ b/homeassistant/components/sun/entity.py @@ -74,8 +74,8 @@ PHASE_DAY = "day" _PHASE_UPDATES = { PHASE_NIGHT: timedelta(minutes=4 * 5), PHASE_ASTRONOMICAL_TWILIGHT: timedelta(minutes=4 * 2), - PHASE_NAUTICAL_TWILIGHT: timedelta(minutes=4 * 2), - PHASE_TWILIGHT: timedelta(minutes=4), + PHASE_NAUTICAL_TWILIGHT: timedelta(minutes=4), + PHASE_TWILIGHT: timedelta(minutes=2), PHASE_SMALL_DAY: timedelta(minutes=2), PHASE_DAY: timedelta(minutes=4), }