Rename config.get_config_path to config.path

This commit is contained in:
Paulus Schoutsen committed 2015-03-19 12:27:56 -07:00
1 parent 9b643d57f0
commit 7a7f486cb2
11 files changed
+24 -21

No files matched your search

+1 -1
View File
@@ -148,7 +148,7 @@ def setup(hass, config):
# Load built-in profiles and custom profiles
profile_paths = [os.path.join(os.path.dirname(__file__),
LIGHT_PROFILES_FILE),
hass.config.get_config_path(LIGHT_PROFILES_FILE)]
hass.config.path(LIGHT_PROFILES_FILE)]
profiles = {}
for profile_path in profile_paths:
+1 -1
View File
@@ -52,7 +52,7 @@ def setup_bridge(host, hass, add_devices_callback):
try:
bridge = phue.Bridge(
host,
config_file_path=hass.config.get_config_path(PHUE_CONFIG_FILE))
config_file_path=hass.config.path(PHUE_CONFIG_FILE))
except ConnectionRefusedError: # Wrong host was given
_LOGGER.exception("Error connecting to the Hue bridge at %s", host)