original_docstring: Set up Xbox Live friends.
docstring: Set up Xbox Live friends.
docstring_tokens: Set up Xbox Live friends .
code: async def async_setup_entry(
      hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
  ) -> None:
      """Set up Xbox Live friends."""
      coordinator: XboxUpdateCoordinator = hass.data[DOMAIN][entry.entry_id][
          "coordinator"
      ]
  
      update_friends = partial(async_update_friends, coordinator, {}, async_add_entities)
  
      unsub = coordinator.async_add_listener(update_friends)
      hass.data[DOMAIN][entry.entry_id]["binary_sensor_unsub"] = unsub
      update_friends()
code_tokens: async def async_setup_entry ( hass : HomeAssistant , entry : ConfigEntry , async_add_entities : AddEntitiesCallback ) -> None : coordinator : XboxUpdateCoordinator = hass . data [ DOMAIN ] [ entry . entry_id ] [ "coordinator" ] update_friends = partial ( async_update_friends , coordinator , { } , async_add_entities ) unsub = coordinator . async_add_listener ( update_friends ) hass . data [ DOMAIN ] [ entry . entry_id ] [ "binary_sensor_unsub" ] = unsub update_friends ( )
short_docstring: Set up Xbox Live friends.
short_docstring_tokens: Set up Xbox Live friends .
comment: """Set up Xbox Live friends."""