Skip to content

Commit

Permalink
fix: logout() (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelli74 committed Oct 7, 2023
1 parent 23c3f5c commit 5595e39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aiocomelit/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ async def _login(self, payload: dict[str, Any], host_type: str) -> bool:

async def logout(self) -> None:
"""Comelit Simple Home logout."""
payload = {"logout": 1}
await self._post_page_result("/login.cgi", payload)
self._session.cookie_jar.clear()

async def close(self) -> None:
Expand Down

0 comments on commit 5595e39

Please sign in to comment.