async def register(self):
url = '<STR_LIT>'.format(self.construct_url(API_URL))<EOL>params = {'<STR_LIT>': self._api_key}<EOL>reg = await self.api_request(url, params)<EOL>if reg is None:<EOL><INDENT>self._registered = False<EOL>_LOGGER.error('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>self._registered = True<EOL>_LOGGER.info('<STR_LIT>', self.unique_id)<EOL>self._sessions = reg<EOL>self.update_device_list(self._sessions)<EOL>asyncio.ensure_future(self.socket_connection(), loop=self._event_loop)<EOL><DEDENT>
Register library device id and get initial device list.