From 668d623dffcbd8d8e1898df8726d970487881f6e Mon Sep 17 00:00:00 2001 From: dnutiu Date: Wed, 7 Feb 2024 21:31:35 +0200 Subject: [PATCH] handle INT signal --- app/main.py | 1 + config.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index ad8454e..8baef8f 100644 --- a/app/main.py +++ b/app/main.py @@ -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() diff --git a/config.yaml b/config.yaml index f1fef35..489f95f 100644 --- a/config.yaml +++ b/config.yaml @@ -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: