From 2ccd0bfb133c020748c90fb581964b31146cf02a Mon Sep 17 00:00:00 2001 From: cyr-ius Date: Sat, 14 Dec 2024 16:46:08 +0100 Subject: [PATCH] Fix update interval from option --- custom_components/bbox/coordinator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/bbox/coordinator.py b/custom_components/bbox/coordinator.py index c0f307c..5446b4c 100644 --- a/custom_components/bbox/coordinator.py +++ b/custom_components/bbox/coordinator.py @@ -33,7 +33,7 @@ def __init__( _LOGGER, name=DOMAIN, update_interval=timedelta( - seconds=entry.data.get(CONF_REFRESH_RATE, DEFAULT_REFRESH_RATE) + seconds=entry.options.get(CONF_REFRESH_RATE, DEFAULT_REFRESH_RATE) ), ) self.entry = entry