diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b0c98143300..82e8be48db3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.289 + rev: v0.0.292 hooks: - id: ruff args: diff --git a/homeassistant/components/unifi/controller.py b/homeassistant/components/unifi/controller.py index 620b928176e..fc803e3d800 100644 --- a/homeassistant/components/unifi/controller.py +++ b/homeassistant/components/unifi/controller.py @@ -302,7 +302,7 @@ class UniFiController: self.poe_command_queue.clear() for device_id, device_commands in queue.items(): device = self.api.devices[device_id] - commands = [(idx, mode) for idx, mode in device_commands.items()] + commands = list(device_commands.items()) await self.api.request( DeviceSetPoePortModeRequest.create(device, targets=commands) ) diff --git a/pyproject.toml b/pyproject.toml index 6d6d3d126c8..3fb5e28dedf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -594,7 +594,12 @@ ignore = [ "D407", # Section name underlining "E501", # line too long "E731", # do not assign a lambda expression, use a def - "PLC1901", # Lots of false positives + + # Ignore ignored, as the rule is now back in preview/nursery, which cannot + # be ignored anymore without warnings. + # https://github.com/astral-sh/ruff/issues/7491 + # "PLC1901", # Lots of false positives + # False positives https://github.com/astral-sh/ruff/issues/5386 "PLC0208", # Use a sequence type instead of a `set` when iterating over values "PLR0911", # Too many return statements ({returns} > {max_returns}) diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt index dadc3e0cab2..f3780898ea7 100644 --- a/requirements_test_pre_commit.txt +++ b/requirements_test_pre_commit.txt @@ -2,5 +2,5 @@ black==23.9.1 codespell==2.2.2 -ruff==0.0.289 +ruff==0.0.292 yamllint==1.32.0