Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Commit

Permalink
fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
PTST authored Feb 19, 2020
1 parent 14107ed commit 3a6f8f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/o365/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def validate_permissions(token_path=DEFAULT_CACHE_PATH, token_filename="o365.tok
raw = fh.read()
permissions = json.loads(raw)["scope"]
scope = [x for x in SCOPE if x != "offline_access"]
all_permissions_grated = all([x in permissions for x in scope])
if not all_permissions_grated:
_LOGGER.warning(f"All permissions granted: {all_permissions_grated}")
all_permissions_granted = all([x in permissions for x in scope])
if not all_permissions_granted:
_LOGGER.warning(f"All permissions granted: {all_permissions_granted}")
return all_permissions_granted


Expand Down

0 comments on commit 3a6f8f5

Please sign in to comment.