Sound device is now configurable
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-09-30 04:56:17 +02:00
parent 1292666b66
commit 9a6852c2c0
2 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class SoundSensor(AbcSensor):
"""
def __init__(self):
BirbnetesIoTPlatformRecordDriver.init(config.SAMPLE_LENGTH)
BirbnetesIoTPlatformRecordDriver.init(config.SAMPLE_LENGTH, microphone=config.RECORD_DEVICE)
def getvalue(self) -> Optional[str]:
"""