Move more HTTP stuff into constant file
This commit is contained in:
1 parent
7a8f6500e2
commit
3f26fc3b06
8 files changed
+59
-61
No files matched your search
@@ -13,12 +13,13 @@ import homeassistant as ha
|
||||
import homeassistant.bootstrap as bootstrap
|
||||
import homeassistant.remote as remote
|
||||
import homeassistant.components.http as http
|
||||
from homeassistant.const import HTTP_HEADER_HA_AUTH
|
||||
|
||||
API_PASSWORD = "test1234"
|
||||
|
||||
HTTP_BASE_URL = "http://127.0.0.1:8122"
|
||||
|
||||
HA_HEADERS = {remote.AUTH_HEADER: API_PASSWORD}
|
||||
HA_HEADERS = {HTTP_HEADER_HA_AUTH: API_PASSWORD}
|
||||
|
||||
hass, slave, master_api, broken_api = None, None, None, None
|
||||
|
||||
|
||||
Reference in new issue
Block a user