handle INT signal

This commit is contained in:
Denis-Cosmin Nutiu 2024-02-07 21:31:35 +02:00
parent b9822b33e7
commit 668d623dff
2 changed files with 2 additions and 1 deletions

View file

@ -43,4 +43,5 @@ if __name__ == "__main__":
)
driver.add_accessory(accessory=get_bridge(driver, settings))
signal.signal(signal.SIGTERM, driver.signal_handler)
signal.signal(signal.SIGINT, driver.signal_handler)
driver.start()

View file

@ -3,7 +3,7 @@ prometheus:
port: 8000
hap:
port: 51826
persist_file: /home/denis/bme680-homekit/sensors/accessory.state
persist_file: /home/denis/bme680-homekit/accessory.state
bridge:
display_name: Bridge
bme680: