def _schedule_add_entities(self, new_entities, update_before_add=False):
    'Schedule adding entities for a single platform, synchronously.'
    run_callback_threadsafe(self.hass.loop, self._async_schedule_add_entities, list(new_entities), update_before_add).result()
Schedule adding entities for a single platform, synchronously.
def _schedule_add_entities(self, new_entities, update_before_add=False):
    
    run_callback_threadsafe(self.hass.loop, self._async_schedule_add_entities, list(new_entities), update_before_add).result()