mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Make sure diagnostic data is output in deterministic order ZHA (#123551)
Make sure diagnostic data is output in deterministic order Sets are not ordered, so the tests for this failed sporadically since it is converted into a list when converted to json.
This commit is contained in:
parent
f53da62026
commit
f69507527b
@ -166,5 +166,7 @@ def get_cluster_attr_data(cluster: Cluster) -> dict:
|
|||||||
}
|
}
|
||||||
for attr_id, attr_def in cluster.attributes.items()
|
for attr_id, attr_def in cluster.attributes.items()
|
||||||
},
|
},
|
||||||
UNSUPPORTED_ATTRIBUTES: cluster.unsupported_attributes,
|
UNSUPPORTED_ATTRIBUTES: sorted(
|
||||||
|
cluster.unsupported_attributes, key=lambda v: (isinstance(v, str), v)
|
||||||
|
),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user