Skip to content

Commit fe45aa6

Browse files
Lash-Lallenporter
andauthored
chore: collapse
Co-authored-by: Allen Porter <allen.porter@gmail.com>
1 parent ead65d7 commit fe45aa6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

roborock/cli.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -866,13 +866,8 @@ def _parse_diagnostic_file(diagnostic_path: Path) -> dict[str, dict[str, Any]]:
866866
product_data = coordinator_data.get("product", {})
867867

868868
model = product_data.get("model")
869-
if not model:
869+
if not model or model in all_products_data:
870870
continue
871-
872-
# Skip duplicate models
873-
if model in all_products_data:
874-
continue
875-
876871
# Derive product nickname from model
877872
short_model = model.split(".")[-1]
878873
product_nickname = SHORT_MODEL_TO_ENUM.get(short_model, RoborockProductNickname.PEARLPLUS)

0 commit comments

Comments
 (0)