mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-25 18:16:32 +00:00
fix lint
This commit is contained in:
parent
23ba1b64a5
commit
7d50b69030
@ -30,7 +30,6 @@ class APISupervisor(object):
|
|||||||
@api_process
|
@api_process
|
||||||
async def options(self, request):
|
async def options(self, request):
|
||||||
"""Set supervisor options."""
|
"""Set supervisor options."""
|
||||||
update = False
|
|
||||||
body = await request.json(loads=json_loads)
|
body = await request.json(loads=json_loads)
|
||||||
|
|
||||||
if ATTR_BETA in body:
|
if ATTR_BETA in body:
|
||||||
|
@ -19,7 +19,7 @@ async def fetch_current_versions(websession, beta=False):
|
|||||||
|
|
||||||
Is a coroutine.
|
Is a coroutine.
|
||||||
"""
|
"""
|
||||||
url = URL_HASSIO_VERSION_BETA if beta or URL_HASSIO_VERSION
|
url = URL_HASSIO_VERSION_BETA if beta else URL_HASSIO_VERSION
|
||||||
try:
|
try:
|
||||||
with async_timeout.timeout(10, loop=websession.loop):
|
with async_timeout.timeout(10, loop=websession.loop):
|
||||||
async with websession.get(url) as request:
|
async with websession.get(url) as request:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user