From 49c399c358bbe45b034f6e013233dc906d47ef0a Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 19 Jul 2017 22:59:21 -0700 Subject: [PATCH] Update persistent deps dir version in config.py (#8479) * Update persistent deps dir version in config.py * Update last version to remove deps dir in tests --- homeassistant/config.py | 4 ++-- tests/test_config.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/config.py b/homeassistant/config.py index 003e6481685..a4b7bce5dc0 100644 --- a/homeassistant/config.py +++ b/homeassistant/config.py @@ -297,8 +297,8 @@ def process_ha_config_upgrade(hass): _LOGGER.info("Upgrading configuration directory from %s to %s", conf_version, __version__) - if LooseVersion(conf_version) < LooseVersion('0.49'): - # 0.49 introduced persistent deps dir. + if LooseVersion(conf_version) < LooseVersion('0.50'): + # 0.50 introduced persistent deps dir. lib_path = hass.config.path('deps') if os.path.isdir(lib_path): shutil.rmtree(lib_path) diff --git a/tests/test_config.py b/tests/test_config.py index eba98795fe9..8c889979a82 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -260,8 +260,8 @@ class TestConfig(unittest.TestCase): @mock.patch('homeassistant.config.shutil') @mock.patch('homeassistant.config.os') def test_remove_lib_on_upgrade(self, mock_os, mock_shutil): - """Test removal of library on upgrade from before 0.49.""" - ha_version = '0.48.0' + """Test removal of library on upgrade from before 0.50.""" + ha_version = '0.49.0' mock_os.path.isdir = mock.Mock(return_value=True) mock_open = mock.mock_open() with mock.patch('homeassistant.config.open', mock_open, create=True):