Fix lint formatting (#262)
This commit is contained in:
1 parent
4194aa42ec
commit
412035e6b2
2 files changed
+4
-4
No files matched your search
@@ -150,7 +150,7 @@ async def main() -> None:
|
|||||||
type=float,
|
type=float,
|
||||||
default=900.0, # 15 minutes
|
default=900.0, # 15 minutes
|
||||||
help="Seconds before a ringing timer auto-stops (default: 900)",
|
help="Seconds before a ringing timer auto-stops (default: 900)",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--debug",
|
"--debug",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
|
|||||||
@@ -418,7 +418,7 @@ class VoiceSatelliteProtocol(APIServer):
|
|||||||
|
|
||||||
if self._timer_finished:
|
if self._timer_finished:
|
||||||
self._timer_finished = False
|
self._timer_finished = False
|
||||||
self._timer_ring_start = None
|
self._timer_ring_start = None
|
||||||
self.unduck()
|
self.unduck()
|
||||||
self.state.tts_player.stop()
|
self.state.tts_player.stop()
|
||||||
_LOGGER.debug("Stopping timer finished sound")
|
_LOGGER.debug("Stopping timer finished sound")
|
||||||
@@ -467,7 +467,7 @@ class VoiceSatelliteProtocol(APIServer):
|
|||||||
self.unduck()
|
self.unduck()
|
||||||
self._timer_ring_start = None
|
self._timer_ring_start = None
|
||||||
return
|
return
|
||||||
|
|
||||||
# Auto-stop after timer_max_ring_seconds
|
# Auto-stop after timer_max_ring_seconds
|
||||||
if self._timer_ring_start is not None:
|
if self._timer_ring_start is not None:
|
||||||
elapsed = time.monotonic() - self._timer_ring_start
|
elapsed = time.monotonic() - self._timer_ring_start
|
||||||
@@ -482,7 +482,7 @@ class VoiceSatelliteProtocol(APIServer):
|
|||||||
self.state.active_wake_words.discard(self.state.stop_word.id)
|
self.state.active_wake_words.discard(self.state.stop_word.id)
|
||||||
self.unduck()
|
self.unduck()
|
||||||
return
|
return
|
||||||
|
|
||||||
self.state.tts_player.play(
|
self.state.tts_player.play(
|
||||||
self.state.timer_finished_sound,
|
self.state.timer_finished_sound,
|
||||||
done_callback=lambda: call_all(
|
done_callback=lambda: call_all(
|
||||||
|
|||||||
Reference in new issue
Block a user