Permissions methods are unused for now, but will be in a future PR.
For the is_admin changes, the await will need to be removed here.
Also, I know that the logging in this method is here for Home Assistant, but ideally I think it should be moved to reolink_dev (since it is the actual custom component and reolink is the library it uses) and is_admin could then simply return user["level"] == "admin".
Permissions methods are unused for now, but will be in a future PR.
For the
is_admin
changes, theawait
will need to be removed here. Also, I know that the logging in this method is here for Home Assistant, but ideally I think it should be moved toreolink_dev
(since it is the actual custom component andreolink
is the library it uses) andis_admin
could then simplyreturn user["level"] == "admin"
.