You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello rytilahti,
the new protocol.py caused an error:
File "/mirobo/protocol.py", line 42, in verify_token
raise ValueError("Token must be of length 32")
ValueError: Token must be of length 32
This is the code block:
@staticmethod
def verify_token(token: bytes):
if not isinstance(token, bytes):
raise TypeError("Token must be bytes")
if len(token) != 32:
raise ValueError("Token must be of length 32")
I think
if len(token) != 32:
must be
if len(token) != 16:
because of "bytes".
Short question:
Why is
# click.echo("DND enabled: %s" % res.dnd)
# click.echo("Map present: %s" % res.map)
# click.echo("in_cleaning: %s" % res.in_cleaning)
comment out in vacuum_cli.py?
Greetings
The text was updated successfully, but these errors were encountered:
syssi
added a commit
to syssi/python-miio
that referenced
this issue
Sep 4, 2017
Ah, sorry, I missed that, thanks for noticing. Regarding to your question, those values are in the response from the vacuum but they are not useful or accurate based on my own experiences.
Hello rytilahti,
the new protocol.py caused an error:
This is the code block:
I think
must be
because of "bytes".
Short question:
Why is
# click.echo("DND enabled: %s" % res.dnd)
# click.echo("Map present: %s" % res.map)
# click.echo("in_cleaning: %s" % res.in_cleaning)
comment out in vacuum_cli.py?
Greetings
The text was updated successfully, but these errors were encountered: