Skip to content

Commit

Permalink
Fix #181
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed Oct 30, 2021
1 parent e2b5e24 commit 011523f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/media-player-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class MediaPlayerController extends Controller {
entity_id: this.stateObj.entity_id,
volume_level: value,
});
if (value)
if (value && this.stateObj.attributes.is_volume_muted)
this._hass.callService("media_player", "volume_mute", {
entity_id: this.stateObj.entity_id,
is_volume_muted: false,
Expand Down

0 comments on commit 011523f

Please sign in to comment.