original_docstring: Remove friend sensors from Home Assistant.
docstring: Remove friend sensors from Home Assistant.
docstring_tokens: Remove friend sensors from Home Assistant .
code: async def async_remove_entities(
      xuid: str,
      coordinator: XboxUpdateCoordinator,
      current: dict[str, XboxBinarySensorEntity],
  ) -> None:
      """Remove friend sensors from Home Assistant."""
      registry = er.async_get(coordinator.hass)
      entities = current[xuid]
      for entity in entities:
          if entity.entity_id in registry.entities:
              registry.async_remove(entity.entity_id)
      del current[xuid]
code_tokens: async def async_remove_entities ( xuid : str , coordinator : XboxUpdateCoordinator , current : dict [ str , XboxBinarySensorEntity ] , ) -> None : registry = er . async_get ( coordinator . hass ) entities = current [ xuid ] for entity in entities : if entity . entity_id in registry . entities : registry . async_remove ( entity . entity_id ) del current [ xuid ]
short_docstring: Remove friend sensors from Home Assistant.
short_docstring_tokens: Remove friend sensors from Home Assistant .
comment: """Remove friend sensors from Home Assistant."""