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

Linting: black reformatting

Jason Rumney пре 2 година
родитељ
комит
ec7b664ddc

+ 1 - 1
custom_components/tuya_local/remote.py

@@ -191,7 +191,7 @@ class TuyaLocalRemote(TuyaLocalEntity, RemoteEntity):
                         "control": CMD_SEND,
                         "head": "",
                         # leading zero means use head, any other leeading character is discarded.
-                        "key1": '1' + code,
+                        "key1": "1" + code,
                         "type": 0,
                         "delay": 300,
                     }

+ 1 - 0
tests/devices/test_ir_remote_sensors.py

@@ -11,6 +11,7 @@ HUMID_DP = "102"
 IRSEND_DP = "201"
 IRRECV_DP = "202"
 
+
 class TestIRRemoteSensors(MultiSensorTests, TuyaDeviceTestCase):
     __test__ = True
 

+ 2 - 1
tests/test_remote.py

@@ -12,6 +12,7 @@ from custom_components.tuya_local.const import (
 )
 from custom_components.tuya_local.remote import TuyaLocalRemote, async_setup_entry
 
+
 @pytest.mark.asyncio
 async def test_init_entry(hass):
     """Test the initialisation."""
@@ -23,7 +24,7 @@ async def test_init_entry(hass):
             CONF_PROTOCOL_VERSION: "auto",
         },
     )
-        # although async, the async_add_entities function passed to
+    # although async, the async_add_entities function passed to
     # async_setup_entry is called truly asynchronously. If we use
     # AsyncMock, it expects us to await the result.
     m_add_entities = Mock()