Skip to content

Commit

Permalink
fix(core): fix unintentional event trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
maxileith committed Jan 15, 2024
1 parent 478f2dd commit c4bd9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/device-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class NodePyATVDeviceEvents extends EventEmitter {

// Volume events don't hold the complete state…
// see https://github.com/sebbo2002/node-pyatv/pull/291
if('volume' in newState && newState.volume) {
if('volume' in newState && newState.volume !== null) {
keys = ['volume'];
}

Expand Down

0 comments on commit c4bd9a5

Please sign in to comment.