Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions glocaltokens/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ def __init__(
LOGGER.error("%s device_name must be provided", log_prefix)
return
if not token_utils.is_local_auth_token(local_auth_token):
LOGGER.error(
"%s local_auth_token must follow the correct format", log_prefix
LOGGER.warning(
"%s local_auth_token does not follow Google Home token format. "
"Ignore for non-Google Home devices",
log_prefix,
)
return

Expand Down
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def test_initialization__valid(self) -> None:

self.assertEqual(device.local_auth_token, local_auth_token)

@patch("glocaltokens.client.LOGGER.error")
@patch("glocaltokens.client.LOGGER.warning")
def test_initialization__invalid(self, m_log: NonCallableMock) -> None:
"""Test initialization that is invalid"""

Expand Down