use driver.async_start()

This commit is contained in:
Denis-Cosmin Nutiu 2024-02-07 21:50:55 +02:00
parent 949f6c235d
commit 586bbdc439

View file

@ -45,7 +45,7 @@ async def main():
driver.add_accessory(accessory=get_bridge(driver, settings)) driver.add_accessory(accessory=get_bridge(driver, settings))
signal.signal(signal.SIGTERM, driver.signal_handler) signal.signal(signal.SIGTERM, driver.signal_handler)
signal.signal(signal.SIGINT, driver.signal_handler) signal.signal(signal.SIGINT, driver.signal_handler)
driver.start() await driver.async_start()
if __name__ == "__main__": if __name__ == "__main__":