Skip to content

HASS 2026.3.4 -> 2026.4.0 Upgrade breaks ZHA with ZBT-2 #167258

@homemagicuser

Description

@homemagicuser

The problem

Installation method: Home Assistant OS
Core: 2026.4.0
Supervisor: 2026.03.2
Operating System: 17.1
Frontend: 20260325.5

Issue:

After upgrading to latest HASS 2026.4.0 my ZHA integration (ZBT-2) doesn't work anymore.
Looking at Settings -> Integrations -> Zigbee Home Automation, ZHA shows "Failed to set up".
This functioned flawlessly before the upgrade.

What version of Home Assistant Core has the issue?

core-2026.4.0

What was the last working version of Home Assistant Core?

core-2026.3.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Zigbee Home Automation

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: config_entries.py:769
First occurred: April 2, 2026 at 3:14:32 PM (2 occurrences)
Last logged: April 2, 2026 at 4:55:53 PM

Error setting up entry Home Assistant Connect ZBT-2 for zha
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 769, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 157, in async_setup_entry
    zha_gateway = await Gateway.async_from_config(zha_lib_data)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/zha/application/gateway.py", line 238, in async_from_config
    await instance.async_add_executor_job(
    ...<2 lines>...
    )
  File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 86, in run
    result = ctx.run(self.task)
  File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 73, in run
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.14/site-packages/zhaquirks/__init__.py", line 523, in setup
    importlib.import_module(modname)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.14/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 755, in exec_module
  File "<frozen importlib._bootstrap_external>", line 893, in get_code
  File "<frozen importlib._bootstrap_external>", line 823, in source_to_code
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/usr/local/lib/python3.14/site-packages/zhaquirks/tuya/ts0043.py", line 185
    },
    ^
SyntaxError: closing parenthesis '}' does not match opening parenthesis '[' on line 178

Additional information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions