mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 11:36:32 +00:00
commit
ebe9ae2341
@ -2,7 +2,7 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from ipaddress import ip_network
|
from ipaddress import ip_network
|
||||||
|
|
||||||
HASSIO_VERSION = '119'
|
HASSIO_VERSION = '120'
|
||||||
|
|
||||||
URL_HASSIO_ADDONS = "https://github.com/home-assistant/hassio-addons"
|
URL_HASSIO_ADDONS = "https://github.com/home-assistant/hassio-addons"
|
||||||
URL_HASSIO_VERSION = \
|
URL_HASSIO_VERSION = \
|
||||||
|
@ -380,10 +380,12 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
|
|||||||
url = f"{self.api_url}/{path}"
|
url = f"{self.api_url}/{path}"
|
||||||
headers = {}
|
headers = {}
|
||||||
|
|
||||||
|
# Passthrough content type
|
||||||
if content_type is not None:
|
if content_type is not None:
|
||||||
headers[hdrs.CONTENT_TYPE] = content_type
|
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
|
headers[HEADER_HA_ACCESS] = self.api_password
|
||||||
|
|
||||||
for _ in (1, 2):
|
for _ in (1, 2):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user