Make sure to initialize _check_token_task in the UA controller

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2022-02-03 10:18:38 +01:00
parent c171aac2c7
commit 455e98aab9
1 changed files with 8 additions and 0 deletions

View File

@ -15,7 +15,9 @@
""" Module that defines the client-side controller class for Ubuntu Advantage.
"""
import asyncio
import logging
from typing import Optional
from subiquitycore.async_helpers import schedule_task
@ -37,6 +39,12 @@ class UbuntuAdvantageController(SubiquityTuiController):
endpoint_name = "ubuntu_advantage"
def __init__(self, app) -> None:
""" Initializer for the client-side UA controller. """
self._check_task: Optional[asyncio.Future] = None
super().__init__(app)
async def make_ui(self) -> UbuntuAdvantageView:
""" Generate the UI, based on the data provided by the model. """