From 8f37ac59fa3f1163a9ae0ccbc39a69d787a1cf6a Mon Sep 17 00:00:00 2001 From: Pedro Ribeiro Date: Tue, 28 Nov 2023 23:18:43 +0000 Subject: [PATCH] Fix __init__.py --- custom_components/rademacher/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/rademacher/__init__.py b/custom_components/rademacher/__init__.py index 9d8d5ac..f5753d6 100644 --- a/custom_components/rademacher/__init__.py +++ b/custom_components/rademacher/__init__.py @@ -96,7 +96,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: api = HomePilotApi( entry.data[CONF_HOST], entry.data[CONF_PASSWORD] if CONF_PASSWORD in entry.data else "", - entry.data[CONF_API_VERSION], + entry.data[CONF_API_VERSION] if CONF_API_VERSION in entry.data else 1, ) try: manager = await HomePilotManager.async_build_manager(api)