about summary refs log tree commit diff
path: root/pkgs/development/python-modules/home-assistant-bluetooth/habluetooth-3.0-compat.patch
blob: c56d890fd8aa90292f4b6f8ced9c02c00cb06c7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
diff --git a/tests/test_models.py b/tests/test_models.py
index ecfd70c..b8001f2 100644
--- a/tests/test_models.py
+++ b/tests/test_models.py
@@ -88,6 +88,7 @@ def test_model_from_scanner():
         "service_uuids": ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"],
         "source": "local",
         "time": now,
+        "tx_power": -127,
     }
 
 
@@ -109,6 +110,7 @@ def test_construct_service_info_bleak():
         advertisement=switchbot_adv,
         connectable=False,
         time=now,
+        tx_power=None,
     )
 
     assert service_info.service_uuids == ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"]
@@ -132,6 +134,7 @@ def test_construct_service_info_bleak():
         "service_uuids": ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"],
         "source": "local",
         "time": now,
+        "tx_power": None,
     }
 
 
@@ -165,6 +168,7 @@ def test_from_device_and_advertisement_data():
         "service_uuids": ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"],
         "source": "local",
         "time": now_monotonic,
+        "tx_power": -127,
     }
 
 
@@ -200,6 +204,7 @@ def test_pyobjc_compat():
         advertisement=switchbot_adv,
         connectable=False,
         time=now,
+        tx_power=None,
     )
 
     assert service_info.service_uuids == ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"]
@@ -223,4 +228,5 @@ def test_pyobjc_compat():
         "service_uuids": ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"],
         "source": "local",
         "time": now,
+        "tx_power": None,
     }