'Setup platform with one entity and set name.'

def test_setup_platform_name(self):

    config = {ip.DOMAIN: {'platform': 'openalpr_cloud', 'source': {'entity_id': 'camera.demo_camera', 'name': 'test    local'}, 'region': 'eu', 'api_key': 'sk_abcxyz123456'}, 'camera': {'platform': 'demo'}}
    with assert_setup_component(1, ip.DOMAIN):
        setup_component(self.hass, ip.DOMAIN, config)
    assert self.hass.states.get('image_processing.test_local')
