Skip to content

Commit 8b6d9cd

Browse files
committed
test: Share default new_feature_info_str from APP_GET_INIT_STATUS and parse unconditionally
1 parent f50dba5 commit 8b6d9cd

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tests/devices/traits/v1/fixtures.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,8 @@ async def discover_features_fixture(
125125
"""Fixture to handle device feature discovery."""
126126
assert device.v1_properties
127127

128-
new_feature_info_str = device_info.new_feature_set or "0000000000002000"
129-
try:
130-
new_feature_info = int(new_feature_info_str, 16)
131-
except ValueError:
132-
new_feature_info = 0
128+
new_feature_info_str = device_info.new_feature_set or str(mock_data.APP_GET_INIT_STATUS["new_feature_info_str"])
129+
new_feature_info = int(new_feature_info_str, 16)
133130

134131
mock_rpc_channel.send_command.side_effect = [
135132
[

0 commit comments

Comments
 (0)