Skip to content

Commit

Permalink
fixiing #480
Browse files Browse the repository at this point in the history
  • Loading branch information
robinostlund committed May 15, 2023
1 parent 4951332 commit 940278e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/volkswagencarnet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 940278e

Please sign in to comment.