Test failure with 2026.9.4

Open
#363 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 11 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start by checking the Home Assistant version pinned in requirements-test-integration.txt against the 2026.9.4 version reported here, then run the integration tests that fail during collection: tests_integration/test_dedup_eviction.py, tests_integration/test_execute_command_authorization.py, and tests_integration/test_repeater_firmware_button.py. The traceback points to the entity classes in custom_components/meshcore/device_tracker.py and custom_components/meshcore/button.py; done means the metaclass conflicts are resolved and these tests collect and pass on the reported version.

Written by the indexing model from the issue text.

Description

bug

Hi, we're seeing the following test failures over in nixpkgs with 2.10.0 against 2026.9.4. The reason CI here is green is because you are likely testing against an old home-assistant version.

https://github.com/meshcore-dev/meshcore-ha/blob/0f99da64be8a0ab6eacd4e87246f2a70e624f2b6/requirements-test-integration.txt#L6

e.g.

__________ ERROR collecting tests_integration/test_dedup_eviction.py ___________
tests_integration/test_dedup_eviction.py:30: in <module>
    from custom_components.meshcore.device_tracker import DeviceTrackerManager
custom_components/meshcore/device_tracker.py:155: in <module>
    class MeshCoreGPSTracker(CoordinatorEntity, TrackerEntity):
E   TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
___ ERROR collecting tests_integration/test_execute_command_authorization.py ___
tests_integration/test_execute_command_authorization.py:11: in <module>
    from custom_components.meshcore.button import MeshCoreCLIRunButton
custom_components/meshcore/button.py:50: in <module>
    class _MeshCoreCLIButton(CoordinatorEntity, ButtonEntity):
E   TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
_____ ERROR collecting tests_integration/test_repeater_firmware_button.py ______
tests_integration/test_repeater_firmware_button.py:12: in <module>
    from custom_components.meshcore.button import (
custom_components/meshcore/button.py:50: in <module>
    class _MeshCoreCLIButton(CoordinatorEntity, ButtonEntity):
E   TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
Dominant language
Python
Stars
269
Forks
58
Avg merge
10d 17h
Merged PRs (30d)
12

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from meshcore-dev/meshcore-ha

All issues in meshcore-dev/meshcore-ha

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.