async def test_unload_entry_fails_if_never_loaded(hass):
    '.'
    component = EntityComponent(_LOGGER, DOMAIN, hass)
    entry = MockConfigEntry(domain='entry_domain')
    with pytest.raises(ValueError):
        (await component.async_unload_entry(entry))
.
async def test_unload_entry_fails_if_never_loaded(hass):
    
    component = EntityComponent(_LOGGER, DOMAIN, hass)
    entry = MockConfigEntry(domain='entry_domain')
    with pytestraises(ValueError):
        (await componentasync_unload_entry(entry))