We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ae755f commit 02bb5d2Copy full SHA for 02bb5d2
1 file changed
custom_components/bhyve/binary_sensor.py
@@ -63,11 +63,10 @@ class BHyveBinarySensorEntityDescription(BinarySensorEntityDescription):
63
value_fn=lambda data: (
64
"alarm" in data.get("status", {}).get("temp_alarm_status", "")
65
),
66
- attributes_fn=lambda data: (
67
- thresh
68
- if isinstance(thresh := data.get("temp_alarm_thresholds"), dict)
69
- else {}
70
- ),
+ attributes_fn=lambda data: {
+ **(thresh if isinstance(thresh := data.get("temp_alarm_thresholds"), dict) else {}),
+ "problem_type": "temperature",
+ },
71
72
BHyveBinarySensorEntityDescription(
73
key="fault",
0 commit comments