def test_entity_id():
    schema = vol.Schema(cv.entity_id)

    with pytest.raises(vol.MultipleInvalid):
        schema('invalid_entity')

    assert 'sensor.light' == schema('sensor.LIGHT')
Register configuration options used by this library.
dataset/ETHPy150Open home-assistant/home-assistant/tests/helpers/test_config_validation.py/test_entity_id--crossover with--dataset/ETHPy150Open openstack/oslo.log/oslo_log/versionutils.py/register_options