Преглед изворни кода

Black reformatting.

Reformatting to satisfy black and guarantee future merge conflicts.
Jason Rumney пре 5 година
родитељ
комит
e1e04ad948

+ 1 - 3
tests/dehumidifier/test_climate.py

@@ -41,9 +41,7 @@ from ..helpers import assert_device_properties_set
 
 class TestGoldairDehumidifier(IsolatedAsyncioTestCase):
     def setUp(self):
-        device_patcher = patch(
-            "custom_components.tuya_local.device.GoldairTuyaDevice"
-        )
+        device_patcher = patch("custom_components.tuya_local.device.GoldairTuyaDevice")
         self.addCleanup(device_patcher.stop)
         self.mock_device = device_patcher.start()
 

+ 1 - 3
tests/dehumidifier/test_light.py

@@ -16,9 +16,7 @@ from ..helpers import assert_device_properties_set
 
 class TestGoldairDehumidifierLedDisplayLight(IsolatedAsyncioTestCase):
     def setUp(self):
-        device_patcher = patch(
-            "custom_components.tuya_local.device.GoldairTuyaDevice"
-        )
+        device_patcher = patch("custom_components.tuya_local.device.GoldairTuyaDevice")
         self.addCleanup(device_patcher.stop)
         self.mock_device = device_patcher.start()
 

+ 2 - 6
tests/dehumidifier/test_lock.py

@@ -9,9 +9,7 @@ from custom_components.tuya_local.dehumidifier.const import (
     ATTR_HVAC_MODE,
     PROPERTY_TO_DPS_ID,
 )
-from custom_components.tuya_local.dehumidifier.lock import (
-    GoldairDehumidifierChildLock,
-)
+from custom_components.tuya_local.dehumidifier.lock import GoldairDehumidifierChildLock
 
 from ..const import DEHUMIDIFIER_PAYLOAD
 from ..helpers import assert_device_properties_set
@@ -19,9 +17,7 @@ from ..helpers import assert_device_properties_set
 
 class TestGoldairDehumidifierChildLock(IsolatedAsyncioTestCase):
     def setUp(self):
-        device_patcher = patch(
-            "custom_components.tuya_local.device.GoldairTuyaDevice"
-        )
+        device_patcher = patch("custom_components.tuya_local.device.GoldairTuyaDevice")
         self.addCleanup(device_patcher.stop)
         self.mock_device = device_patcher.start()
 

+ 1 - 3
tests/fan/test_climate.py

@@ -34,9 +34,7 @@ from ..helpers import assert_device_properties_set
 
 class TestGoldairFan(IsolatedAsyncioTestCase):
     def setUp(self):
-        device_patcher = patch(
-            "custom_components.tuya_local.device.GoldairTuyaDevice"
-        )
+        device_patcher = patch("custom_components.tuya_local.device.GoldairTuyaDevice")
         self.addCleanup(device_patcher.stop)
         self.mock_device = device_patcher.start()
 

+ 1 - 3
tests/fan/test_light.py

@@ -14,9 +14,7 @@ from ..helpers import assert_device_properties_set
 
 class TestGoldairFanLedDisplayLight(IsolatedAsyncioTestCase):
     def setUp(self):
-        device_patcher = patch(
-            "custom_components.tuya_local.device.GoldairTuyaDevice"
-        )
+        device_patcher = patch("custom_components.tuya_local.device.GoldairTuyaDevice")
         self.addCleanup(device_patcher.stop)
         self.mock_device = device_patcher.start()
 

+ 1 - 3
tests/geco_heater/test_climate.py

@@ -24,9 +24,7 @@ from ..helpers import assert_device_properties_set
 
 class TestGoldairGECOHeater(IsolatedAsyncioTestCase):
     def setUp(self):
-        device_patcher = patch(
-            "custom_components.tuya_local.device.GoldairTuyaDevice"
-        )
+        device_patcher = patch("custom_components.tuya_local.device.GoldairTuyaDevice")
         self.addCleanup(device_patcher.stop)
         self.mock_device = device_patcher.start()
 

+ 2 - 6
tests/geco_heater/test_lock.py

@@ -9,9 +9,7 @@ from custom_components.tuya_local.geco_heater.const import (
     ATTR_HVAC_MODE,
     PROPERTY_TO_DPS_ID,
 )
-from custom_components.tuya_local.geco_heater.lock import (
-    GoldairGECOHeaterChildLock,
-)
+from custom_components.tuya_local.geco_heater.lock import GoldairGECOHeaterChildLock
 
 from ..const import GECO_HEATER_PAYLOAD
 from ..helpers import assert_device_properties_set
@@ -19,9 +17,7 @@ from ..helpers import assert_device_properties_set
 
 class TestGoldairGECOHeaterChildLock(IsolatedAsyncioTestCase):
     def setUp(self):
-        device_patcher = patch(
-            "custom_components.tuya_local.device.GoldairTuyaDevice"
-        )
+        device_patcher = patch("custom_components.tuya_local.device.GoldairTuyaDevice")
         self.addCleanup(device_patcher.stop)
         self.mock_device = device_patcher.start()
 

+ 1 - 3
tests/gpcv_heater/test_climate.py

@@ -28,9 +28,7 @@ from ..helpers import assert_device_properties_set
 
 class TestGoldairGPCVHeater(IsolatedAsyncioTestCase):
     def setUp(self):
-        device_patcher = patch(
-            "custom_components.tuya_local.device.GoldairTuyaDevice"
-        )
+        device_patcher = patch("custom_components.tuya_local.device.GoldairTuyaDevice")
         self.addCleanup(device_patcher.stop)
         self.mock_device = device_patcher.start()
 

+ 2 - 6
tests/gpcv_heater/test_lock.py

@@ -9,9 +9,7 @@ from custom_components.tuya_local.gpcv_heater.const import (
     ATTR_HVAC_MODE,
     PROPERTY_TO_DPS_ID,
 )
-from custom_components.tuya_local.gpcv_heater.lock import (
-    GoldairGPCVHeaterChildLock,
-)
+from custom_components.tuya_local.gpcv_heater.lock import GoldairGPCVHeaterChildLock
 
 from ..const import GPCV_HEATER_PAYLOAD
 from ..helpers import assert_device_properties_set
@@ -19,9 +17,7 @@ from ..helpers import assert_device_properties_set
 
 class TestGoldairGPCVHeaterChildLock(IsolatedAsyncioTestCase):
     def setUp(self):
-        device_patcher = patch(
-            "custom_components.tuya_local.device.GoldairTuyaDevice"
-        )
+        device_patcher = patch("custom_components.tuya_local.device.GoldairTuyaDevice")
         self.addCleanup(device_patcher.stop)
         self.mock_device = device_patcher.start()
 

+ 1 - 3
tests/heater/test_climate.py

@@ -38,9 +38,7 @@ from ..helpers import assert_device_properties_set
 
 class TestGoldairHeater(IsolatedAsyncioTestCase):
     def setUp(self):
-        device_patcher = patch(
-            "custom_components.tuya_local.device.GoldairTuyaDevice"
-        )
+        device_patcher = patch("custom_components.tuya_local.device.GoldairTuyaDevice")
         self.addCleanup(device_patcher.stop)
         self.mock_device = device_patcher.start()
 

+ 1 - 3
tests/heater/test_light.py

@@ -14,9 +14,7 @@ from ..helpers import assert_device_properties_set
 
 class TestGoldairHeaterLedDisplayLight(IsolatedAsyncioTestCase):
     def setUp(self):
-        device_patcher = patch(
-            "custom_components.tuya_local.device.GoldairTuyaDevice"
-        )
+        device_patcher = patch("custom_components.tuya_local.device.GoldairTuyaDevice")
         self.addCleanup(device_patcher.stop)
         self.mock_device = device_patcher.start()
 

+ 1 - 3
tests/heater/test_lock.py

@@ -17,9 +17,7 @@ from ..helpers import assert_device_properties_set
 
 class TestGoldairHeaterChildLock(IsolatedAsyncioTestCase):
     def setUp(self):
-        device_patcher = patch(
-            "custom_components.tuya_local.device.GoldairTuyaDevice"
-        )
+        device_patcher = patch("custom_components.tuya_local.device.GoldairTuyaDevice")
         self.addCleanup(device_patcher.stop)
         self.mock_device = device_patcher.start()