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):