Ver código fonte

tests (lock): fix syntax error from last accidental change

Discussion #4013
Jason Rumney 3 meses atrás
pai
commit
097e70a0da
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      tests/devices/test_ailrinni_fplock.py

+ 4 - 4
tests/devices/test_ailrinni_fplock.py

@@ -52,7 +52,7 @@ class TestAilrinniFingerprintLock(TuyaDeviceTestCase):
     async def test_lock(self):
         """Test locking the lock."""
         expected = b64encode(
-            b"\x00" + b"\x00\x01" + b"12345678" + b"\x00\x00
+            b"\x00\x00\x01" + b"12345678" + b"\x00\x00",
         ).decode("utf-8")
         async with assert_device_properties_set(
             self.subject._device,
@@ -62,9 +62,9 @@ class TestAilrinniFingerprintLock(TuyaDeviceTestCase):
 
     async def test_unlock(self):
         """Test unlocking the lock."""
-        expected = b64encode(b"\x01" + b"\x00\x01" + b"12345678" + b"\x00\x00").decode(
-            "utf-8"
-        )
+        expected = b64encode(
+            b"\x01\x00\x01" + b"12345678" + b"\x00\x00",
+        ).decode("utf-8")
         async with assert_device_properties_set(
             self.subject._device,
             {CODE_UNLOCK_DP: expected},