Skip to content

Commit

Permalink
remove wrong wrapper call
Browse files Browse the repository at this point in the history
  • Loading branch information
bbirnbach committed Nov 27, 2024
1 parent f22b421 commit 30fb5a5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions custom_components/homeassistantedupage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ async def async_setup(hass: HomeAssistant, config: dict) -> bool:
_LOGGER.debug("INIT called async_setup")
return True

def login_wrapper(edupage: Edupage, username: str, password: str, subdomain: str):
#TODO hier ist noch was unsauber bzgl async und await
edupage.login(username=username, password=password, subdomain=subdomain)

async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""initializin EduPage-integration and validate API-login"""
_LOGGER.debug("INIT called async_setup_entry")
Expand All @@ -42,7 +38,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:

try:
login_success = await hass.async_add_executor_job(
login_wrapper, edupage, username, password, subdomain
edupage.login, username, password, subdomain
)
_LOGGER.debug("INIT login_success")

Expand Down

0 comments on commit 30fb5a5

Please sign in to comment.