async def async_add_entities(self, new_entities, update_before_add=False):
    'Add entities for a single platform async.\n\n        This method must be run in the event loop.\n        '
    if (not new_entities):
        return
    hass = self.hass
    device_registry = (await hass.helpers.device_registry.async_get_registry())
    entity_registry = (await hass.helpers.entity_registry.async_get_registry())
    tasks = [self._async_add_entity(entity, update_before_add, entity_registry, device_registry) for entity in new_entities]
    if (not tasks):
        return
    (await asyncio.wait(tasks))
    self.async_entities_added_callback()
    if ((self._async_unsub_polling is not None) or (not any((entity.should_poll for entity in self.entities.values())))):
        return
    self._async_unsub_polling = async_track_time_interval(self.hass, self._update_entity_states, self.scan_interval)
Add entities for a single platform async.

This method must be run in the event loop.
async def async_add_entities(self, new_entities, update_before_add=False):
    'Add entities for a single platform async.\n\n        This method must be run in the event loop.\n        '
    if (not new_entities):
        return
    hass = self.hass
    device_registry = (await hass.helpers.device_registry.async_get_registry())
    entity_registry = (await hass.helpers.entity_registry.async_get_registry())
    tasks = [self._async_add_entity(entity, update_before_add, entity_registry, device_registry) for entity in new_entities]
    if (not tasks):
        return
    (await asyncio.wait(tasks))
    self.async_entities_added_callback()
    if ((self._async_unsub_polling is not None) or (not any((entity.should_poll for entity in self.entities.values())))):
        return
    self._async_unsub_polling = async_track_time_interval(self.hass, self._update_entity_states, self.scan_interval)