String formatting and max line length - Part 2 (#84393)
This commit is contained in:
parent
7e682af472
commit
cb13418bab
69 changed files with 431 additions and 174 deletions
|
@ -414,7 +414,8 @@ class HassIO:
|
|||
if http_config.get(CONF_SERVER_HOST) is not None:
|
||||
options["watchdog"] = False
|
||||
_LOGGER.warning(
|
||||
"Found incompatible HTTP option 'server_host'. Watchdog feature disabled"
|
||||
"Found incompatible HTTP option 'server_host'. Watchdog feature"
|
||||
" disabled"
|
||||
)
|
||||
|
||||
return await self.send_command("/homeassistant/options", payload=options)
|
||||
|
@ -455,7 +456,9 @@ class HassIO:
|
|||
f"http://{self._ip}{command}",
|
||||
json=payload,
|
||||
headers={
|
||||
aiohttp.hdrs.AUTHORIZATION: f"Bearer {os.environ.get('SUPERVISOR_TOKEN', '')}"
|
||||
aiohttp.hdrs.AUTHORIZATION: (
|
||||
f"Bearer {os.environ.get('SUPERVISOR_TOKEN', '')}"
|
||||
)
|
||||
},
|
||||
timeout=aiohttp.ClientTimeout(total=timeout),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue