mirror of
https://github.com/home-assistant/core.git
synced 2025-11-11 12:00:52 +00:00
Don't allow hass.config.config_dir to be None (#98442)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user