def _url(data={}):
    data = "&".join(["{}={}".format(name, value) for
                     name, value in data.items()])
    return "{}{}locative?{}".format(HTTP_BASE_URL, const.URL_API, data)
Helper method to generate URLs.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/device_tracker/test_locative.py/_url