Skip to content

Commit

Permalink
Ensure Linkplay model_id is always defined (home-assistant#125488)
Browse files Browse the repository at this point in the history
Linkplay: ensure model_id always defined
  • Loading branch information
balloob authored Sep 8, 2024
1 parent 2c48f9a commit 634582e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion homeassistant/components/linkplay/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ def __init__(self, bridge: LinkPlayBridge) -> None:
]

manufacturer, model = get_info_from_project(bridge.device.properties["project"])
if model != MANUFACTURER_GENERIC:
if model == MANUFACTURER_GENERIC:
model_id = None
else:
model_id = bridge.device.properties["project"]

self._attr_device_info = dr.DeviceInfo(
Expand Down

0 comments on commit 634582e

Please sign in to comment.