async def test_extract_all_use_match_all(hass, caplog):
    'Test extract all with None and *.'
    component = EntityComponent(_LOGGER, DOMAIN, hass)
    (await component.async_add_entities([MockEntity(name='test_1'), MockEntity(name='test_2')]))
    call = ha.ServiceCall('test', 'service', {'entity_id': 'all'})
    assert (['test_domain.test_1', 'test_domain.test_2'] == sorted((ent.entity_id for ent in (await component.async_extract_from_service(call)))))
    assert ('Not passing an entity ID to a service to target all entities is deprecated' not in caplog.text)
Test extract all with None and *.
async def test_extract_all_use_match_all(hass, caplog):
    
    component = EntityComponent(_LOGGER, DOMAIN, hass)
    (await component.async_add_entities([MockEntity(name='test_1'), MockEntity(name='test_2')]))
    call = ha.ServiceCall('test', 'service', {'entity_id': 'all'})
    assert (['test_domain.test_1', 'test_domain.test_2'] == sorted((ent.entity_id for ent in (await component.async_extract_from_service(call)))))
    assert ('Not passing an entity ID to a service to target all entities is deprecated' not in caplog.text)