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: