Skip to content

TypeError: Hass.create_task() got an unexpected keyword argument 'name' #3245

@dbrb2

Description

@dbrb2

I updated predbat last night - but now seem to be stuck in that I can neither upgrade now downgrade.
I wonder if I can somehow fix this locally to allow the update from

Installed version v8.31.20
to
Latest version v8.32.3

Currently attenmpts to upgrade fail - presumably because predbat never gets far enough to allow for an upgrade?

**** Starting Standalone Predbat ****
2026-01-15 13:35:02.839933: Loading apps.yaml
2026-01-15 13:35:02.888424: Info: Add-on slug is 6adb4f0d_predbat
/config/components.py:328: RuntimeWarning: coroutine 'HAInterface.start' was never awaited
  self.component_tasks[component_name] = self.base.create_task(component.start(), name=f"{component_name}_component_task")
2026-01-15 13:35:02.902394: Error: Exception raised Hass.create_task() got an unexpected keyword argument 'name'
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
2026-01-15 13:35:02.903660: Error: Traceback (most recent call last):
  File "/config/predbat.py", line 1471, in initialize
    if not self.components.start(phase=0):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/components.py", line 328, in start
    self.component_tasks[component_name] = self.base.create_task(component.start(), name=f"{component_name}_component_task")
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Hass.create_task() got an unexpected keyword argument 'name'
2026-01-15 13:35:02.917782: Warn: record_status Error: Exception raised Hass.create_task() got an unexpected keyword argument 'name'
Error: Failed to initialize predbat Hass.create_task() got an unexpected keyword argument 'name'
Traceback (most recent call last):
  File "/config/hass.py", line 49, in main
    p_han.initialize()
  File "/config/predbat.py", line 1509, in initialize
    raise e
  File "/config/predbat.py", line 1471, in initialize
    if not self.components.start(phase=0):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^**** Starting Standalone Predbat ****
2026-01-15 13:37:22.474028: Loading apps.yaml
2026-01-15 13:37:22.519196: Info: Add-on slug is 6adb4f0d_predbat
/config/components.py:328: RuntimeWarning: coroutine 'HAInterface.start' was never awaited
  self.component_tasks[component_name] = self.base.create_task(component.start(), name=f"{component_name}_component_task")
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
2026-01-15 13:37:22.532525: Error: Exception raised Hass.create_task() got an unexpected keyword argument 'name'
2026-01-15 13:37:22.533733: Error: Traceback (most recent call last):
  File "/config/predbat.py", line 1471, in initialize
    if not self.components.start(phase=0):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/components.py", line 328, in start
    self.component_tasks[component_name] = self.base.create_task(component.start(), name=f"{component_name}_component_task")
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Hass.create_task() got an unexpected keyword argument 'name'
2026-01-15 13:37:22.546370: Warn: record_status Error: Exception raised Hass.create_task() got an unexpected keyword argument 'name'
Error: Failed to initialize predbat Hass.create_task() got an unexpected keyword argument 'name'
Traceback (most recent call last):
  File "/config/hass.py", line 49, in main
    p_han.initialize()
  File "/config/predbat.py", line 1509, in initialize
    raise e
  File "/config/predbat.py", line 1471, in initialize
    if not self.components.start(phase=0):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/components.py", line 328, in start
    self.component_tasks[component_name] = self.base.create_task(component.start(), name=f"{component_name}_component_task")
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Hass.create_task() got an unexpected keyword argument 'name'
2026-01-15 13:37:22.547613: Stopping Predbat
2026-01-15 13:37:22.848697: Info: Components stopped
Shutdown, sleeping 20 seconds before restarting

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions