Hey everyone,
unfortunately I’ve forgotten the password of my docker-based HA installation. I thought this was no problem because there is the hass --script auth --config /config change_password existing_user new_password
shell script.
I tried running it in my container’s console, however I’m getting an error. Here’s the stacktrace:
homeassistant:/config# hass --script auth --config /config change_password User abcd1234
Traceback (most recent call last):
File "/usr/local/bin/hass", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/src/homeassistant/homeassistant/__main__.py", line 181, in main
return scripts.run(args.script)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/scripts/__init__.py", line 68, in run
return script.run(args[1:])
^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/scripts/auth.py", line 50, in run
asyncio.run(run_command(parser.parse_args(args)))
File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 685, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/scripts/auth.py", line 56, in run_command
await asyncio.gather(dr.async_load(hass), er.async_load(hass))
File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 1389, in async_load
await hass.data[DATA_REGISTRY].async_load()
File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 1232, in async_load
_validate_item(
File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 631, in _validate_item
report_issue = async_suggest_report_issue(hass, integration_domain=platform)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1712, in async_suggest_report_issue
issue_tracker = async_get_issue_tracker(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1687, in async_get_issue_tracker
integration = async_get_loaded_integration(hass, integration_domain)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1318, in async_get_loaded_integration
cache = hass.data[DATA_INTEGRATIONS]
~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'integrations'
Am I doing something wrong? I’ve made sure that the username exists and is correct.