From 0c9b72bf1dcdf55c4c04fd29245939ccf9db9c2a Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sat, 11 Oct 2025 09:31:36 +0200 Subject: [PATCH] Update pylint to 3.3.9 (#154194) --- requirements_test.txt | 2 +- tests/components/homeassistant_hardware/test_util.py | 6 ------ tests/components/roborock/test_coordinator.py | 9 ++++++--- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/requirements_test.txt b/requirements_test.txt index 6b5965879ce..3ed53574225 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -18,7 +18,7 @@ mock-open==1.4.0 mypy-dev==1.19.0a4 pre-commit==4.2.0 pydantic==2.12.0 -pylint==3.3.8 +pylint==3.3.9 pylint-per-file-ignores==1.4.0 pipdeptree==2.26.1 pytest-asyncio==1.2.0 diff --git a/tests/components/homeassistant_hardware/test_util.py b/tests/components/homeassistant_hardware/test_util.py index 94cac924683..ef064ba4195 100644 --- a/tests/components/homeassistant_hardware/test_util.py +++ b/tests/components/homeassistant_hardware/test_util.py @@ -612,7 +612,6 @@ async def test_async_flash_silabs_firmware(hass: HomeAssistant) -> None: call(hass), # pylint: disable-next=unnecessary-dunder-call call().__aenter__(ANY), - # pylint: disable-next=unnecessary-dunder-call call().__aexit__(ANY, None, None, None), ] @@ -620,7 +619,6 @@ async def test_async_flash_silabs_firmware(hass: HomeAssistant) -> None: call(hass), # pylint: disable-next=unnecessary-dunder-call call().__aenter__(ANY), - # pylint: disable-next=unnecessary-dunder-call call().__aexit__(ANY, None, None, None), ] @@ -669,14 +667,12 @@ async def test_async_flash_silabs_firmware_flash_failure(hass: HomeAssistant) -> call(hass), # pylint: disable-next=unnecessary-dunder-call call().__aenter__(ANY), - # pylint: disable-next=unnecessary-dunder-call call().__aexit__(ANY, HomeAssistantError, exc.value, ANY), ] assert owner2.temporarily_stop.mock_calls == [ call(hass), # pylint: disable-next=unnecessary-dunder-call call().__aenter__(ANY), - # pylint: disable-next=unnecessary-dunder-call call().__aexit__(ANY, HomeAssistantError, exc.value, ANY), ] @@ -731,13 +727,11 @@ async def test_async_flash_silabs_firmware_probe_failure(hass: HomeAssistant) -> call(hass), # pylint: disable-next=unnecessary-dunder-call call().__aenter__(ANY), - # pylint: disable-next=unnecessary-dunder-call call().__aexit__(ANY, None, None, None), ] assert owner2.temporarily_stop.mock_calls == [ call(hass), # pylint: disable-next=unnecessary-dunder-call call().__aenter__(ANY), - # pylint: disable-next=unnecessary-dunder-call call().__aexit__(ANY, None, None, None), ] diff --git a/tests/components/roborock/test_coordinator.py b/tests/components/roborock/test_coordinator.py index 315ab14bdb5..77b5f9bfa29 100644 --- a/tests/components/roborock/test_coordinator.py +++ b/tests/components/roborock/test_coordinator.py @@ -92,9 +92,12 @@ async def test_visible_background( await hass.config_entries.async_setup(mock_roborock_entry.entry_id) await hass.async_block_till_done() coordinator: RoborockDataUpdateCoordinator = mock_roborock_entry.runtime_data.v1[0] - assert coordinator.map_parser._palette.get_color( # pylint: disable=protected-access - SupportedColor.MAP_OUTSIDE - ) != (0, 0, 0, 0) + assert coordinator.map_parser._palette.get_color(SupportedColor.MAP_OUTSIDE) != ( + 0, + 0, + 0, + 0, + ) @pytest.mark.parametrize(