From a3ac0af56d0f61eeedcb77ea9bdef188a332f14d Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 11 Jun 2024 08:01:52 +0200 Subject: [PATCH] Ignore some pylint errors in component tests (#119352) --- tests/components/forked_daapd/test_browse_media.py | 4 ++-- tests/components/ibeacon/test_device_tracker.py | 4 +++- tests/components/ibeacon/test_sensor.py | 4 +++- tests/components/zha/test_repairs.py | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/components/forked_daapd/test_browse_media.py b/tests/components/forked_daapd/test_browse_media.py index 29923c9f9e9..805bcac3976 100644 --- a/tests/components/forked_daapd/test_browse_media.py +++ b/tests/components/forked_daapd/test_browse_media.py @@ -12,10 +12,10 @@ from homeassistant.components.forked_daapd.browse_media import ( is_owntone_media_content_id, ) from homeassistant.components.media_player import BrowseMedia, MediaClass, MediaType -from homeassistant.components.spotify.const import ( +from homeassistant.components.spotify.const import ( # pylint: disable=hass-component-root-import MEDIA_PLAYER_PREFIX as SPOTIFY_MEDIA_PLAYER_PREFIX, ) -from homeassistant.components.websocket_api.const import TYPE_RESULT +from homeassistant.components.websocket_api import TYPE_RESULT from homeassistant.core import HomeAssistant from homeassistant.setup import async_setup_component diff --git a/tests/components/ibeacon/test_device_tracker.py b/tests/components/ibeacon/test_device_tracker.py index e34cc480cb0..dcc21b5bfc9 100644 --- a/tests/components/ibeacon/test_device_tracker.py +++ b/tests/components/ibeacon/test_device_tracker.py @@ -11,7 +11,9 @@ from homeassistant.components.bluetooth import ( async_ble_device_from_address, async_last_service_info, ) -from homeassistant.components.bluetooth.const import UNAVAILABLE_TRACK_SECONDS +from homeassistant.components.bluetooth.const import ( # pylint: disable=hass-component-root-import + UNAVAILABLE_TRACK_SECONDS, +) from homeassistant.components.ibeacon.const import ( DOMAIN, UNAVAILABLE_TIMEOUT, diff --git a/tests/components/ibeacon/test_sensor.py b/tests/components/ibeacon/test_sensor.py index f4dba57bced..e2ddf1dd7bc 100644 --- a/tests/components/ibeacon/test_sensor.py +++ b/tests/components/ibeacon/test_sensor.py @@ -4,7 +4,9 @@ from datetime import timedelta import pytest -from homeassistant.components.bluetooth.const import UNAVAILABLE_TRACK_SECONDS +from homeassistant.components.bluetooth.const import ( # pylint: disable=hass-component-root-import + UNAVAILABLE_TRACK_SECONDS, +) from homeassistant.components.ibeacon.const import DOMAIN, UPDATE_INTERVAL from homeassistant.components.sensor import ATTR_STATE_CLASS from homeassistant.const import ( diff --git a/tests/components/zha/test_repairs.py b/tests/components/zha/test_repairs.py index abb9dc6dc9e..c093fe266bd 100644 --- a/tests/components/zha/test_repairs.py +++ b/tests/components/zha/test_repairs.py @@ -12,7 +12,7 @@ from zigpy.application import ControllerApplication import zigpy.backups from zigpy.exceptions import NetworkSettingsInconsistent -from homeassistant.components.homeassistant_sky_connect.const import ( +from homeassistant.components.homeassistant_sky_connect.const import ( # pylint: disable=hass-component-root-import DOMAIN as SKYCONNECT_DOMAIN, ) from homeassistant.components.repairs import DOMAIN as REPAIRS_DOMAIN