handle INT signal
This commit is contained in:
parent
b9822b33e7
commit
668d623dff
2 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue