diff --git a/hassio/const.py b/hassio/const.py index a26515d79..3bf167cab 100644 --- a/hassio/const.py +++ b/hassio/const.py @@ -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 = \ diff --git a/hassio/homeassistant.py b/hassio/homeassistant.py index d7b34a762..3eb3bde4f 100644 --- a/hassio/homeassistant.py +++ b/hassio/homeassistant.py @@ -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):