Merge pull request #600 from home-assistant/dev

Release 120
This commit is contained in:
Pascal Vizeli 2018-07-24 22:11:10 +02:00 committed by GitHub
commit ebe9ae2341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
from pathlib import Path
from ipaddress import ip_network
HASSIO_VERSION = '119'
HASSIO_VERSION = '120'
URL_HASSIO_ADDONS = "https://github.com/home-assistant/hassio-addons"
URL_HASSIO_VERSION = \

View File

@ -380,10 +380,12 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
url = f"{self.api_url}/{path}"
headers = {}
# Passthrough content type
if content_type is not None:
headers[hdrs.CONTENT_TYPE] = content_type
elif self.api_password:
# Set old API Password
if self.api_password:
headers[HEADER_HA_ACCESS] = self.api_password
for _ in (1, 2):