rytilahti / python-miio

Python library & console tool for controlling Xiaomi smart appliances
https://python-miio.readthedocs.io
GNU General Public License v3.0
3.68k stars 552 forks source link

Raise InvalidTokenException on invalid token #1874

Closed rytilahti closed 10 months ago

rytilahti commented 10 months ago

Invalid checksum raises now a more specialized InvalidTokenException. This will allow downstreams to request the user to check the token.

codecov[bot] commented 10 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (36b4025) 81.40% compared to head (3ea06cc) 81.40%. Report is 2 commits behind head on master.

Files Patch % Lines
miio/miioprotocol.py 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1874 +/- ## ======================================= Coverage 81.40% 81.40% ======================================= Files 193 193 Lines 18563 18563 Branches 4025 4024 -1 ======================================= + Hits 15111 15112 +1 + Misses 3171 3170 -1 Partials 281 281 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.