home-assistant / ada

Hey Ada!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make inputs/outputs configurable

balloob opened this issue · comments

Right now it's hardcoded to work with the hass.io add-on, for example here:

ada/ada/homeassistant.py

Lines 16 to 17 in 4fb7ba0

self.url = "http://hassio/homeassistant/api"
self.headers = {"Authorization": f"Bearer {os.environ.get('HASSIO_TOKEN')}"}

We should base that info on constructor variables or an option object, so we can create runner scripts for other environments.