Remove redundant open modes (#33652)

This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-04-04 22:49:15 +02:00
1 parent fddaea797e
commit 22ae498f3a
9 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -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