Ensure Linkplay model_id is always defined (#125488)

Linkplay: ensure model_id always defined
This commit is contained in:
Paulus Schoutsen
2024-09-08 11:36:36 -04:00
committed by GitHub
parent 2c48f9aa4c
commit 634582eab7
@@ -156,7 +156,9 @@ class LinkPlayMediaPlayerEntity(MediaPlayerEntity):
]
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(