mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Ensure Linkplay model_id is always defined (#125488)
Linkplay: ensure model_id always defined
This commit is contained in:
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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user