Fix import-outside-toplevel pylint warnings in tests (#119389)
This commit is contained in:
parent
43db0e457c
commit
2c7022950c
12 changed files with 52 additions and 142 deletions
|
@ -4,6 +4,7 @@ from unittest.mock import MagicMock
|
|||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.litterrobot.sensor import icon_for_gauge_level
|
||||
from homeassistant.components.sensor import DOMAIN as PLATFORM_DOMAIN, SensorDeviceClass
|
||||
from homeassistant.const import PERCENTAGE, STATE_UNKNOWN, UnitOfMass
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
@ -47,7 +48,6 @@ async def test_sleep_time_sensor_with_sleep_disabled(
|
|||
|
||||
async def test_gauge_icon() -> None:
|
||||
"""Test icon generator for gauge sensor."""
|
||||
from homeassistant.components.litterrobot.sensor import icon_for_gauge_level
|
||||
|
||||
GAUGE_EMPTY = "mdi:gauge-empty"
|
||||
GAUGE_LOW = "mdi:gauge-low"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue