From 940278ec884ef72b32bc705fb92dc04923f90fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20=C3=96stlund?= Date: Mon, 15 May 2023 16:16:31 +0200 Subject: [PATCH] fixiing #480 --- custom_components/volkswagencarnet/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/volkswagencarnet/__init__.py b/custom_components/volkswagencarnet/__init__.py index 2df5446..b6cf352 100755 --- a/custom_components/volkswagencarnet/__init__.py +++ b/custom_components/volkswagencarnet/__init__.py @@ -113,8 +113,8 @@ def register_services(): schema=SERVICE_SET_CHARGER_MAX_CURRENT_SCHEMA, ) - scan_interval_conf = self.entry.options.get( - CONF_SCAN_INTERVAL, self.entry.data.get(CONF_SCAN_INTERVAL, DEFAULT_UPDATE_INTERVAL) + scan_interval_conf = entry.options.get( + CONF_SCAN_INTERVAL, entry.data.get(CONF_SCAN_INTERVAL, DEFAULT_UPDATE_INTERVAL) ) update_interval = timedelta(minutes=scan_interval_conf)