def __init__(self, brand: str, websession: ClientSession = None) -> None:
        """Initialize the API object."""
        if brand not in BRAND_MAPPINGS:
            raise UnsupportedBrandError('Unknown brand: {0}'.format(brand))

        self._brand = brand
        self._websession = websession
        self._supplied_websession = True

        self._credentials = None
        self._security_token = None
        self._devices = []
        self._last_update = None
        self.online = False

        self._update_lock = asyncio.Lock()
        self._security_token_lock = asyncio.Lock()
def __init__ ( self , brand : str , websession : ClientSession = None ) -> None : if brand not in BRAND_MAPPINGS : raise UnsupportedBrandError ( 'Unknown brand: {0}' . format ( brand ) ) self . _brand = brand self . _websession = websession self . _supplied_websession = True self . _credentials = None self . _security_token = None self . _devices = [ ] self . _last_update = None self . online = False self . _update_lock = asyncio . Lock ( ) self . _security_token_lock = asyncio . Lock ( )
Initialize the API object.