Skip to content

Commit 3aafe24

Browse files
committed
Fix: another typo
1 parent 2234da4 commit 3aafe24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

music_assistant_models/player.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ def __post_serialize__(self, d: dict[str, Any]) -> dict[str, Any]:
251251
("mute_control", "volume_mute"),
252252
("volume_control", "volume_set"),
253253
]:
254-
if control == PLAYER_CONTROL_NONE and feature in d["supported_features"]:
254+
if d[control] == PLAYER_CONTROL_NONE and feature in d["supported_features"]:
255255
d["supported_features"].remove(feature)
256-
elif control != PLAYER_CONTROL_NONE and feature not in d["supported_features"]:
256+
elif d[control] != PLAYER_CONTROL_NONE and feature not in d["supported_features"]:
257257
d["supported_features"].append(feature)
258258

259259
return d

0 commit comments

Comments
 (0)