Remove redundant open modes (#33652)
This commit is contained in:
1 parent
fddaea797e
commit
22ae498f3a
9 files changed
+12
-12
No files matched your search
@@ -221,7 +221,7 @@ def setup(hass, config):
|
||||
|
||||
def check_correct_scopes(token_file):
|
||||
"""Check for the correct scopes in file."""
|
||||
tokenfile = open(token_file, "r").read()
|
||||
tokenfile = open(token_file).read()
|
||||
if "readonly" in tokenfile:
|
||||
_LOGGER.warning("Please re-authenticate with Google.")
|
||||
return False
|
||||
|
||||
Reference in new issue
Block a user