There was an error while loading. Please reload this page.
1 parent f50dba5 commit 8b6d9cdCopy full SHA for 8b6d9cd
1 file changed
tests/devices/traits/v1/fixtures.py
@@ -125,11 +125,8 @@ async def discover_features_fixture(
125
"""Fixture to handle device feature discovery."""
126
assert device.v1_properties
127
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
+ new_feature_info_str = device_info.new_feature_set or str(mock_data.APP_GET_INIT_STATUS["new_feature_info_str"])
+ new_feature_info = int(new_feature_info_str, 16)
133
134
mock_rpc_channel.send_command.side_effect = [
135
[
0 commit comments