Move accessory state path to sensors

This commit is contained in:
Denis-Cosmin Nutiu 2022-06-13 13:07:24 +03:00
parent 595dbe126a
commit 2b93c5f8d3

View file

@ -57,7 +57,7 @@ def get_bridge(accessory_driver):
if __name__ == '__main__': if __name__ == '__main__':
driver = AccessoryDriver(port=51826, persist_file="/home/pi/bme680-homekit/accessory.state") driver = AccessoryDriver(port=51826, persist_file="/home/pi/bme680-homekit/sensors/accessory.state")
driver.add_accessory(accessory=get_bridge(driver)) driver.add_accessory(accessory=get_bridge(driver))
signal.signal(signal.SIGTERM, driver.signal_handler) signal.signal(signal.SIGTERM, driver.signal_handler)
driver.start() driver.start()