async def setup_bermuda_entry(hass: HomeAssistant):
    """This setups a entry so that it can be used."""
    config_entry = MockConfigEntry(domain=DOMAIN, data=MOCK_CONFIG, entry_id="test", title=NAME)
    config_entry.add_to_hass(hass)
    await async_setup_component(hass, DOMAIN, {})
    assert config_entry.state == ConfigEntryState.LOADED
    return config_entry
This setups a entry so that it can be used.
tests/conftest.py