From e348bd819e2c25e5cfed39ca2b13eb1bdbad3332 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Sun, 4 Feb 2024 19:26:31 +0100 Subject: [PATCH] Code spaces --- custom_components/stromer/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/stromer/__init__.py b/custom_components/stromer/__init__.py index 319eeb5..e0398ef 100644 --- a/custom_components/stromer/__init__.py +++ b/custom_components/stromer/__init__.py @@ -36,9 +36,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: # Initialize connection to stromer stromer = Stromer(username, password, client_id, client_secret) try: - stromer.bike_id = entry.data["bike_id"] + stromer.bike_id = entry.data["bike_id"] stromer.bike_name = entry.data["nickname"] - stromer.bike_model = entry.data["model"] + stromer.bike_model = entry.data["model"] await stromer.stromer_connect() except ApiError as ex: raise ConfigEntryNotReady("Error while communicating to Stromer API") from ex