From 6578f28e1c627119af57dba71faa342e6f9f111d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 7 Feb 2025 04:46:29 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Update=20dependency=20?= =?UTF-8?q?codespell=20to=20v2.4.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- poetry.lock | 10 +++++----- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/poetry.lock b/poetry.lock index bcf87400..e7c1341c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -451,13 +451,13 @@ colorama = {version = "*", markers = "platform_system == \"Windows\""} [[package]] name = "codespell" -version = "2.3.0" -description = "Codespell" +version = "2.4.1" +description = "Fix common misspellings in text files" optional = false python-versions = ">=3.8" files = [ - {file = "codespell-2.3.0-py3-none-any.whl", hash = "sha256:a9c7cef2501c9cfede2110fd6d4e5e62296920efe9abfb84648df866e47f58d1"}, - {file = "codespell-2.3.0.tar.gz", hash = "sha256:360c7d10f75e65f67bad720af7007e1060a5d395670ec11a7ed1fed9dd17471f"}, + {file = "codespell-2.4.1-py3-none-any.whl", hash = "sha256:3dadafa67df7e4a3dbf51e0d7315061b80d265f9552ebd699b3dd6834b47e425"}, + {file = "codespell-2.4.1.tar.gz", hash = "sha256:299fcdcb09d23e81e35a671bbe746d5ad7e8385972e65dbb833a2eaac33c01e5"}, ] [package.extras] @@ -2277,4 +2277,4 @@ cli = ["typer", "zeroconf"] [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "ddaa7060722370198390a6681a1319ee020056ee524c9e4e52ae7b9beb03f9cb" +content-hash = "1d2f0b7bf1c71c415e9f7b388f9e482eb749e276b0856d593cecc8401039e648" diff --git a/pyproject.toml b/pyproject.toml index 21c83634..8286a32f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ Changelog = "https://github.com/frenck/python-wled/releases" [tool.poetry.dev-dependencies] aresponses = "3.0.0" -codespell = "2.3.0" +codespell = "2.4.1" covdefaults = "2.3.0" coverage = {version = "7.6.10", extras = ["toml"]} mypy = "1.15.0" From 2f16854e5b2b81c24241f35f982f12cb2b4b926c Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 7 Feb 2025 11:57:48 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=96=20Update=20documentation=20for?= =?UTF-8?q?=20ABL=20power=20metrics=20and=20add=20codespell=20configuratio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 3 +++ src/wled/models.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8286a32f..641901e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -175,6 +175,9 @@ runtime-evaluated-base-classes = ["mashumaro.mixins.orjson.DataClassORJSONMixin" [tool.ruff.lint.mccabe] max-complexity = 25 +[tool.codespell] +ignore-words-list = "abl" + [build-system] build-backend = "poetry.core.masonry.api" requires = ["poetry-core>=1.0.0"] diff --git a/src/wled/models.py b/src/wled/models.py index 7acea0f2..15e02908 100644 --- a/src/wled/models.py +++ b/src/wled/models.py @@ -311,14 +311,14 @@ class Leds: """Capabilities of the light.""" max_power: int = field(default=0, metadata=field_options(alias="maxpwr")) - """Maximum power budget in milliamps for the ABL. 0 if ABL is disabled.""" + """Maximum power budget in milliamperes for the ABL. 0 if ABL is disabled.""" max_segments: int = field(default=0, metadata=field_options(alias="maxseg")) """Maximum number of segments supported by this version.""" power: int = field(default=0, metadata=field_options(alias="pwr")) """ - Current LED power usage in milliamps as determined by the ABL. + Current LED power usage in milliamperes as determined by the ABL. 0 if ABL is disabled. """