diff --git a/custom_components/bhyve/__init__.py b/custom_components/bhyve/__init__.py index 65d4fd5..c289543 100644 --- a/custom_components/bhyve/__init__.py +++ b/custom_components/bhyve/__init__.py @@ -72,7 +72,8 @@ async def async_setup(hass, config): # Create storage/scratch directory. try: - os.mkdir(conf_dir) + if not os.path.exists(conf_dir): + os.mkdir(conf_dir) except Exception as err: _LOGGER.info("Could not create storage dir: %s", err) pass