feat(microphone): PollMonitor meldet fehlendes Gerät sofort beim Start
This commit is contained in:
@@ -32,6 +32,12 @@ class PollMonitor:
|
||||
|
||||
async def start(self) -> None:
|
||||
self._known_devices = self._current_devices()
|
||||
if (
|
||||
self.configured_device
|
||||
and self.configured_device not in self._known_devices
|
||||
and self.on_configured_missing
|
||||
):
|
||||
await self.on_configured_missing()
|
||||
self._task = asyncio.create_task(self._loop())
|
||||
|
||||
def stop(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user