优化关机提示
This commit is contained in:
parent
148c5b7621
commit
959acd8fb7
@ -855,7 +855,7 @@ class XiaoMusic:
|
||||
async def stop(self, **kwargs):
|
||||
self._playing = False
|
||||
if kwargs.get("arg1", "") != "notts":
|
||||
await self.do_tts("收到关机口令,再见")
|
||||
await self.do_tts("收到指令,再见")
|
||||
if self._next_timer:
|
||||
self._next_timer.cancel()
|
||||
self.log.info("定时器已取消")
|
||||
|
Loading…
Reference in New Issue
Block a user