Bladeren bron

chore: fix lint issues in time related code

Jason Rumney 7 maanden geleden
bovenliggende
commit
55ab2bfa81
2 gewijzigde bestanden met toevoegingen van 1 en 4 verwijderingen
  1. 1 2
      custom_components/tuya_local/time.py
  2. 0 2
      tests/devices/test_mustool_mt15mt29_airbox.py

+ 1 - 2
custom_components/tuya_local/time.py

@@ -6,10 +6,9 @@ import logging
 from datetime import time, timedelta, datetime
 
 from homeassistant.components.time import TimeEntity
-from homeassistant.const import UnitOfTime
 
 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.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."""
 
-from homeassistant.const import UnitOfTime
-
 from ..const import MUSTOOL_MT15MT29_AIRBOX_PAYLOAD
 from ..mixins.time import MultiTimeTests
 from .base_device_tests import TuyaDeviceTestCase