Explorar o código

chore: fix lint issues in time related code

Jason Rumney hai 7 meses
pai
achega
55ab2bfa81

+ 1 - 2
custom_components/tuya_local/time.py

@@ -6,10 +6,9 @@ import logging
 from datetime import time, timedelta, datetime
 from datetime import time, timedelta, datetime
 
 
 from homeassistant.components.time import TimeEntity
 from homeassistant.components.time import TimeEntity
-from homeassistant.const import UnitOfTime
 
 
 from .device import TuyaLocalDevice
 from .device import TuyaLocalDevice
-from .entity import TuyaLocalEntity, unit_from_ascii
+from .entity import TuyaLocalEntity
 from .helpers.config import async_tuya_setup_platform
 from .helpers.config import async_tuya_setup_platform
 from .helpers.device_config import TuyaEntityConfig
 from .helpers.device_config import TuyaEntityConfig
 
 

+ 0 - 2
tests/devices/test_mustool_mt15mt29_airbox.py

@@ -1,7 +1,5 @@
 """Tests for Mustool MT15/MT29 Airbox, mainly for time entity."""
 """Tests for Mustool MT15/MT29 Airbox, mainly for time entity."""
 
 
-from homeassistant.const import UnitOfTime
-
 from ..const import MUSTOOL_MT15MT29_AIRBOX_PAYLOAD
 from ..const import MUSTOOL_MT15MT29_AIRBOX_PAYLOAD
 from ..mixins.time import MultiTimeTests
 from ..mixins.time import MultiTimeTests
 from .base_device_tests import TuyaDeviceTestCase
 from .base_device_tests import TuyaDeviceTestCase