mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-24 09:36:31 +00:00
fix lint
This commit is contained in:
parent
23ba1b64a5
commit
7d50b69030
@ -30,7 +30,6 @@ class APISupervisor(object):
|
||||
@api_process
|
||||
async def options(self, request):
|
||||
"""Set supervisor options."""
|
||||
update = False
|
||||
body = await request.json(loads=json_loads)
|
||||
|
||||
if ATTR_BETA in body:
|
||||
|
@ -19,7 +19,7 @@ async def fetch_current_versions(websession, beta=False):
|
||||
|
||||
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:
|
||||
with async_timeout.timeout(10, loop=websession.loop):
|
||||
async with websession.get(url) as request:
|
||||
|
Loading…
x
Reference in New Issue
Block a user