Skip to content

Commit

Permalink
Prevent loading the same quirk multiple times (zigpy#1420)
Browse files Browse the repository at this point in the history
* Prevent loading the same quirk multiple times

* remove unnecessary method

* make v2 quirk entries immutable

* fix eq method for consistency

* test equality

* coverage and fixes

* mypy hints

* coverage

* formatting

* Switch to `frozendict`

* Always set `args` and `kwargs

* Ignore `quirk_location` when comparing

* Run `pre-commit`

* Freeze the node descriptor when setting

* API update

* tweak and coverage

* cleanup

* or not...

* log clarity

---------

Co-authored-by: puddly <32534428+puddly@users.noreply.github.com>
  • Loading branch information
dmulcahey and puddly authored Aug 3, 2024
1 parent 5d3b9fd commit 3406c48
Show file tree
Hide file tree
Showing 4 changed files with 276 additions and 140 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependencies = [
'pyserial-asyncio; platform_system!="Windows"',
'pyserial-asyncio!=0.5; platform_system=="Windows"',
"typing_extensions",
"frozendict",
]

[tool.setuptools.packages.find]
Expand Down
Loading

0 comments on commit 3406c48

Please # to comment.