Parcourir la source

tests: cleanup unused imports

Jason Rumney il y a 1 mois
Parent
commit
ce3a89a12f

+ 0 - 1
tests/devices/test_digoo_dgsp202.py

@@ -6,7 +6,6 @@ from homeassistant.const import (
     UnitOfElectricCurrent,
     UnitOfElectricPotential,
     UnitOfPower,
-    UnitOfTime,
 )
 
 from ..const import DIGOO_DGSP202_SOCKET_PAYLOAD

+ 0 - 1
tests/devices/test_goldair_gpph_heater.py

@@ -5,7 +5,6 @@ from homeassistant.const import (
     PERCENTAGE,
     PRECISION_WHOLE,
     UnitOfTemperature,
-    UnitOfTime,
 )
 
 from ..const import GPPH_HEATER_PAYLOAD

+ 0 - 1
tests/devices/test_grid_connect_double_power_point.py

@@ -7,7 +7,6 @@ from homeassistant.const import (
     UnitOfElectricPotential,
     UnitOfEnergy,
     UnitOfPower,
-    UnitOfTime,
 )
 
 from ..const import GRIDCONNECT_2SOCKET_PAYLOAD

+ 0 - 1
tests/devices/test_logicom_powerstrip.py

@@ -1,7 +1,6 @@
 """Tests for the Logicom Strippy 4-way+USB powerstrip."""
 
 from homeassistant.components.switch import SwitchDeviceClass
-from homeassistant.const import UnitOfTime
 
 from ..const import LOGICOM_STRIPPY_PAYLOAD
 from ..mixins.switch import MultiSwitchTests

+ 0 - 1
tests/devices/test_moes_rgb_socket.py

@@ -11,7 +11,6 @@ from homeassistant.const import (
     UnitOfElectricCurrent,
     UnitOfElectricPotential,
     UnitOfPower,
-    UnitOfTime,
 )
 
 from ..const import MOES_RGB_SOCKET_PAYLOAD

+ 1 - 1
tests/devices/test_nedis_htpl20f_heater.py

@@ -5,7 +5,7 @@ from homeassistant.components.climate.const import (
     ClimateEntityFeature,
     HVACMode,
 )
-from homeassistant.const import UnitOfTemperature, UnitOfTime
+from homeassistant.const import UnitOfTemperature
 
 from ..const import NEDIS_HTPL20F_PAYLOAD
 from ..helpers import assert_device_properties_set

+ 0 - 1
tests/devices/test_qoto_03_sprinkler.py

@@ -2,7 +2,6 @@
 
 from homeassistant.components.binary_sensor import BinarySensorDeviceClass
 from homeassistant.components.valve import ValveDeviceClass, ValveEntityFeature
-from homeassistant.const import UnitOfTime
 
 from ..const import QOTO_SPRINKLER_PAYLOAD
 from ..helpers import assert_device_properties_set

+ 0 - 1
tests/devices/test_rgbcw_lightbulb.py

@@ -3,7 +3,6 @@ from homeassistant.components.light import (
     ColorMode,
     LightEntityFeature,
 )
-from homeassistant.const import UnitOfTime
 
 from ..const import RGBCW_LIGHTBULB_PAYLOAD
 from ..helpers import assert_device_properties_set

+ 0 - 2
tests/devices/test_simple_switch_with_timer.py

@@ -1,7 +1,5 @@
 """Tests for a simple switch with timer"""
 
-from homeassistant.const import UnitOfTime
-
 from ..const import TIMED_SOCKET_PAYLOAD
 from ..mixins.switch import SwitchableTests
 from .base_device_tests import TuyaDeviceTestCase

+ 0 - 2
tests/devices/test_simple_switch_with_timerv2.py

@@ -1,7 +1,5 @@
 """Tests for a simple switch with timer"""
 
-from homeassistant.const import UnitOfTime
-
 from ..const import TIMED_SOCKETV2_PAYLOAD
 from ..mixins.switch import SwitchableTests
 from .base_device_tests import TuyaDeviceTestCase

+ 0 - 1
tests/devices/test_smartplug_encoded.py

@@ -1,7 +1,6 @@
 """Tests for the switch entity."""
 
 from homeassistant.components.switch import SwitchDeviceClass
-from homeassistant.const import UnitOfTime
 
 from ..const import SMARTPLUG_ENCODED_PAYLOAD
 from ..mixins.switch import SwitchableTests

+ 0 - 1
tests/devices/test_smartplugv2.py

@@ -6,7 +6,6 @@ from homeassistant.const import (
     UnitOfElectricCurrent,
     UnitOfElectricPotential,
     UnitOfPower,
-    UnitOfTime,
 )
 
 from ..const import KOGAN_SOCKET_PAYLOAD2

+ 0 - 1
tests/devices/test_smartplugv2_energy.py

@@ -8,7 +8,6 @@ from homeassistant.const import (
     UnitOfElectricPotential,
     UnitOfEnergy,
     UnitOfPower,
-    UnitOfTime,
 )
 
 from ..const import SMARTSWITCH_ENERGY_PAYLOAD

+ 0 - 1
tests/devices/test_tmwf02_fan.py

@@ -1,5 +1,4 @@
 from homeassistant.components.fan import FanEntityFeature
-from homeassistant.const import UnitOfTime
 
 from ..const import TMWF02_FAN_PAYLOAD
 from ..helpers import assert_device_properties_set

+ 0 - 1
tests/devices/test_treatlife_ds02f.py

@@ -1,5 +1,4 @@
 from homeassistant.components.fan import FanEntityFeature
-from homeassistant.const import UnitOfTime
 
 from ..const import TREATLIFE_DS02F_PAYLOAD
 from ..helpers import assert_device_properties_set

+ 0 - 1
tests/devices/test_woox_r4028_powerstrip.py

@@ -1,7 +1,6 @@
 """Tests for the Woox R4028 powerstrip."""
 
 from homeassistant.components.switch import SwitchDeviceClass
-from homeassistant.const import UnitOfTime
 
 from ..const import WOOX_R4028_SOCKET_PAYLOAD
 from ..mixins.switch import MultiSwitchTests