Don't allow hass.config.config_dir to be None (#98442)

This commit is contained in:
Erik Montnemery
2023-08-16 13:00:14 +02:00
committed by GitHub
parent 5ed3e90607
commit 91faa53843
18 changed files with 28 additions and 56 deletions

View File

@@ -50,8 +50,7 @@ def run(args):
async def run_command(args):
"""Run the command."""
hass = HomeAssistant()
hass.config.config_dir = os.path.join(os.getcwd(), args.config)
hass = HomeAssistant(os.path.join(os.getcwd(), args.config))
hass.auth = await auth_manager_from_config(hass, [{"type": "homeassistant"}], [])
provider = hass.auth.auth_providers[0]
await provider.async_initialize()