<filename>web/frontend/hass_db/hass_db.py<gh_stars>10-100
# most of the methods are borrowed from
# https://github.com/robmarkcole/HASS-data-detective/blob/master/detective/core.py

from . import config
from urllib.parse import urlparse

def url_from_hass_config(path, **kwargs):
    """ returns the type and url """
    url = config.db_url_from_hass_config(path)
    return url, urlparse(url).scheme.split("+")[0] 
<filename>web/frontend/hass_db/hass_db.py<gh_stars>10-100
# most of the methods are borrowed from
# https://github.com/robmarkcole/HASS-data-detective/blob/master/detective/core.py

from . import config
from urllib.parse import urlparse

def url_from_hass_config(path, **kwargs):
    """ returns the type and url """
    url = config.db_url_from_hass_config(path)
    return url, urlparse(url).scheme.split("+")[0] 
# most of the methods are borrowed from # https://github.com/robmarkcole/HASS-data-detective/blob/master/detective/core.py returns the type and url