async def test_setup_entry_platform_not_exist(hass):
    'Test setup entry fails if platform doesnt exist.'
    component = EntityComponent(_LOGGER, DOMAIN, hass)
    entry = MockConfigEntry(domain='non_existing')
    assert ((await component.async_setup_entry(entry)) is False)
Test setup entry fails if platform doesnt exist.
async def test_setup_entry_platform_not_exist(hass):
    
    component = EntityComponent(_LOGGER, DOMAIN, hass)
    entry = MockConfigEntry(domain='non_existing')
    assert ((await component.async_setup_entry(entry)) is False)