await hass.config_entries.async_forward_entry_setup(config_entry, "binary_sensor")
await hass.config_entries.async_forward_entry_setup(config_entry, "sensor")
// simulate a full setup by manually adding the bridge config entry
hass.config_entries._entries.append(config_entry)
// and make sure it completes before going further
await hass.async_block_till_done()
After Change
await hass.config_entries.async_forward_entry_setup(config_entry, "binary_sensor")
await hass.config_entries.async_forward_entry_setup(config_entry, "sensor")
// simulate a full setup by manually adding the bridge config entry
config_entry.add_to_hass(hass)
// and make sure it completes before going further
await hass.async_block_till_done()