-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
db_migrator script does not support non-default config locations #2566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hmm that is weird, looks like you're right. Care to submit a PR ? |
n8henrie
added a commit
to n8henrie/home-assistant
that referenced
this issue
Jul 20, 2016
Closes home-assistant#2566 The `else` seems to have been an error and was overwriting a non-default config directory with the default location.
Thanks to @AlucardZero for pointing out the issue. Simply removing the |
balloob
pushed a commit
that referenced
this issue
Jul 20, 2016
Closes #2566 The `else` seems to have been an error and was overwriting a non-default config directory with the default location.
balloob
pushed a commit
that referenced
this issue
Jul 21, 2016
Closes #2566 The `else` seems to have been an error and was overwriting a non-default config directory with the default location.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Home Assistant release (
hass --version
): First seen in 0.24.0 and mentioned in gitter; still here as I work in 0.25.0.dev0Python release (
python3 --version
): Python 3.4.3Component/platform: db_migrator
Description of problem:
Although I tell the script to look in
/home/hassdev/haconfig/
, it looks for the database in/home/hassdev/.homeassistant/
(the default). For testing, the default config dir does not exist and the db does exist in the given location:Expected:
db_migrator finds the db in the given directory.
Additional info:
Here is
db_migrator.py
line 80-87:Which if I understand right, will set the place to look for the db (config_dir) back to the default, if the config_dir passed to it DOES exist. I don't understand the reason for the else block. I can submit a PR removing the else block, or otherwise fixing this, if the author could please clarify the intent of this block.
The text was updated successfully, but these errors were encountered: