@callback
def async_create_setup_task():
    'Get task to set up platform.'
    return platform.async_setup_entry(self.hass, config_entry, self._async_schedule_add_entities)
Get task to set up platform.
@callback
def async_create_setup_task():
    
    return platform.async_setup_entry(self.hass, config_entry, self._async_schedule_add_entities)