Skip to content

Commit

Permalink
fix mute toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfonso committed Nov 30, 2023
1 parent 32babdb commit 23ed03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/converters/media_player.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ exports.processMediaPlayer = function (id, control, name, room, func, _obj, obje
setId: state.id,
parseCommand: (entity, command, data, user) =>
new Promise((resolve, reject) =>
adapterData.adapter.setForeignState(command.setId, data.service_data.is_volume_muted, false, {user}, err =>
adapterData.adapter.setForeignState(command.setId, !data.service_data.is_volume_muted, false, {user}, err =>
err ? reject(err) : resolve()))
});

Expand Down

0 comments on commit 23ed03c

Please sign in to comment.