mirror of
https://github.com/home-assistant/core
synced 2024-10-06 02:24:19 +00:00
Allow config.path to take multiple arguments
This commit is contained in:
parent
0a28f3f648
commit
c719e7dc31
|
@ -937,9 +937,9 @@ class Config(object):
|
|||
# Directory that holds the configuration
|
||||
self.config_dir = os.path.join(os.getcwd(), 'config')
|
||||
|
||||
def path(self, path):
|
||||
def path(self, *path):
|
||||
""" Returns path to the file within the config dir. """
|
||||
return os.path.join(self.config_dir, path)
|
||||
return os.path.join(self.config_dir, *path)
|
||||
|
||||
def temperature(self, value, unit):
|
||||
""" Converts temperature to user preferred unit if set. """
|
||||
|
|
Loading…
Reference in a new issue