original_docstring: Get all connected devices.
  
          A device is returned for every IP address. When a device has both a IPv4 and a IPv6 address it will appear
          twice in the returned list.
          
docstring: Get all connected devices.
  A device is returned for every IP address. When a device has both a IPv4 and a IPv6 address it will appear
  twice in the returned list.
docstring_tokens: Get all connected devices . A device is returned for every IP address . When a device has both a IPv4 and a IPv6 address it will appear twice in the returned list .
code: async def async_get_connected_devices(self, retry_on_unauthorized=True) -> List[Device]:
          """Get all connected devices.
  
          A device is returned for every IP address. When a device has both a IPv4 and a IPv6 address it will appear
          twice in the returned list.
          """
          credential = await self._async_get_credential()
  
          params = {"_n": self._nonce}
          cookies = {"credential": credential.token}
          async with self._websession.get(f"{self._hostname}/getConnDevices", params=params, cookies=cookies) as response:
              if retry_on_unauthorized is True and response.status == 401:
                  self._credential = None
                  return await self.async_get_connected_devices(False)
  
              response.raise_for_status()
  
              response_text = await response.text()
  
              _LOGGER.debug("getConnDevices response: %s", response_text)
  
              return to_devices(response_text)
code_tokens: async def async_get_connected_devices ( self , retry_on_unauthorized = True ) -> List [ Device ] : credential = await self . _async_get_credential ( ) params = { "_n" : self . _nonce } cookies = { "credential" : credential . token } async with self . _websession . get ( f"{self._hostname}/getConnDevices" , params = params , cookies = cookies ) as response : if retry_on_unauthorized is True and response . status == 401 : self . _credential = None return await self . async_get_connected_devices ( False ) response . raise_for_status ( ) response_text = await response . text ( ) _LOGGER . debug ( "getConnDevices response: %s" , response_text ) return to_devices ( response_text )
short_docstring: Get all connected devices.
short_docstring_tokens: Get all connected devices .
comment: """Get all connected devices.
  
          A device is returned for every IP address. When a device has both a IPv4 and a IPv6 address it will appear
          twice in the returned list.
          """