Skip to content

Commit

Permalink
Error tips
Browse files Browse the repository at this point in the history
  • Loading branch information
PRO-2684 committed Feb 11, 2022
1 parent 7c860c2 commit 2d4cd02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MiWifiSpeakerV3.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class WifiSpeakerV3Status:

def __init__(self, info: dict, countdown: dict):
self._info = info
if info['media_type'] != 3:
raise TypeError('Unsupported media type. Try manually play a song and then restart the script.')
self.play_status = PlayStatus(info["status"])
self.loop_type = LoopType(info["loop_type"])
self.volume = info["volume"]
Expand Down

0 comments on commit 2d4cd02

Please # to comment.