Skip to content

Commit f649717

Browse files
authored
Add model_id support to airOS (home-assistant#154388)
1 parent bf273ef commit f649717

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

homeassistant/components/airos/entity.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ def __init__(self, coordinator: AirOSDataUpdateCoordinator) -> None:
3636
identifiers={(DOMAIN, str(airos_data.host.device_id))},
3737
manufacturer=MANUFACTURER,
3838
model=airos_data.host.devmodel,
39+
model_id=(
40+
sku
41+
if (sku := airos_data.derived.sku) not in ["UNKNOWN", "AMBIGUOUS"]
42+
else None
43+
),
3944
name=airos_data.host.hostname,
4045
sw_version=airos_data.host.fwversion,
4146
)

0 commit comments

Comments
 (0)