This commit is contained in:
pvizeli 2017-04-04 16:20:34 +02:00
parent 23ba1b64a5
commit 7d50b69030
2 changed files with 1 additions and 2 deletions

View File

@ -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:

View File

@ -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: