Skip to content

Commit

Permalink
Remove role_type to support 5.13+ Fixes #83
Browse files Browse the repository at this point in the history
  • Loading branch information
zachcheatham committed Dec 4, 2023
1 parent 186d3a1 commit 1bd0d4f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/omada/api/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def __init__(

self.url = url
self.site = site
self.role_type = 0
self.name = None
self.version = None
self.controller_id = None
Expand All @@ -61,10 +60,9 @@ async def login(self) -> None:
auth = {"username": self._username, "password": self._password}
response = await self._controller_request("post", "/login", json=auth)

self.role_type = response["roleType"]
self._token = response["token"]

LOGGER.info(f"Login successful. Role type {self.role_type}.")
LOGGER.info("Login successful.")

# Acquire site id for site name as required for versions 5+
if self.version >= "5.0.0":
Expand Down

0 comments on commit 1bd0d4f

Please sign in to comment.