Skip to content

Commit e7c60f5

Browse files
authored
Dont expose garbage entity in myuplink (home-assistant#155278)
1 parent a598473 commit e7c60f5

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

homeassistant/components/myuplink/helpers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ def find_matching_platform(
110110

111111
def skip_entity(model: str, device_point: DevicePoint) -> bool:
112112
"""Check if entity should be skipped for this device model."""
113+
if device_point.parameter_id == "65535":
114+
# Garbage entity showing up on several firmware versions
115+
return True
113116
if model == "SMO 20":
114117
if (
115118
len(device_point.smart_home_categories) > 0

tests/components/myuplink/fixtures/device_points_nibe_f730.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,5 +1108,22 @@
11081108
"enumValues": [],
11091109
"scaleValue": "0.1",
11101110
"zoneId": null
1111+
},
1112+
{
1113+
"category": "Garbage",
1114+
"parameterId": "65535",
1115+
"parameterName": "Text not found: id[], fw[noem-e8], lang[en-GB]",
1116+
"parameterUnit": "",
1117+
"writable": false,
1118+
"timestamp": "2025-07-23T08:33:38+00:00",
1119+
"value": 0.0,
1120+
"strVal": "0",
1121+
"smartHomeCategories": [],
1122+
"minValue": null,
1123+
"maxValue": null,
1124+
"stepValue": 1.0,
1125+
"enumValues": [],
1126+
"scaleValue": "1",
1127+
"zoneId": null
11111128
}
11121129
]

tests/components/myuplink/snapshots/test_diagnostics.ambr

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,23 @@
11691169
"enumValues": [],
11701170
"scaleValue": "0.1",
11711171
"zoneId": null
1172+
},
1173+
{
1174+
"category": "Garbage",
1175+
"parameterId": "65535",
1176+
"parameterName": "Text not found: id[], fw[noem-e8], lang[en-GB]",
1177+
"parameterUnit": "",
1178+
"writable": false,
1179+
"timestamp": "2025-07-23T08:33:38+00:00",
1180+
"value": 0.0,
1181+
"strVal": "0",
1182+
"smartHomeCategories": [],
1183+
"minValue": null,
1184+
"maxValue": null,
1185+
"stepValue": 1.0,
1186+
"enumValues": [],
1187+
"scaleValue": "1",
1188+
"zoneId": null
11721189
}
11731190
]
11741191

@@ -2331,6 +2348,23 @@
23312348
"enumValues": [],
23322349
"scaleValue": "0.1",
23332350
"zoneId": null
2351+
},
2352+
{
2353+
"category": "Garbage",
2354+
"parameterId": "65535",
2355+
"parameterName": "Text not found: id[], fw[noem-e8], lang[en-GB]",
2356+
"parameterUnit": "",
2357+
"writable": false,
2358+
"timestamp": "2025-07-23T08:33:38+00:00",
2359+
"value": 0.0,
2360+
"strVal": "0",
2361+
"smartHomeCategories": [],
2362+
"minValue": null,
2363+
"maxValue": null,
2364+
"stepValue": 1.0,
2365+
"enumValues": [],
2366+
"scaleValue": "1",
2367+
"zoneId": null
23342368
}
23352369
]
23362370

0 commit comments

Comments
 (0)