def test_comp_entity_ids():
    'Test config validation for component entity IDs.'
    schema = vol.Schema(cv.comp_entity_ids)
    for valid in ('ALL', 'all', 'AlL', 'light.kitchen', ['light.kitchen'], ['light.kitchen', 'light.ceiling'], []):
        schema(valid)
    for invalid in (['light.kitchen', 'not-entity-id'], '*', ''):
        with pytest.raises(vol.Invalid):
            schema(invalid)
Test config validation for component entity IDs.
def test_comp_entity_ids():
    
    schema = vol.Schema(cv.comp_entity_ids)
    for valid in ('ALL', 'all', 'AlL', 'light.kitchen', ['light.kitchen'], ['light.kitchen', 'light.ceiling'], []):
        schema(valid)
    for invalid in (['light.kitchen', 'not-entity-id'], '*', ):
        with pytest.raises(vol.Invalid):
            schema(invalid)