Skip to content

Commit

Permalink
Give an accurate name
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdelorenzo committed Jun 3, 2021
1 parent 1781e8c commit 14feb07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cast_control/listeners.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ class DeviceEventListener(
DeviceEventAdapter,
DeviceEventListenerBase
):
def _check_volume(self, status: Status):
def _update_volume(self, status: Status):
if not isinstance(status, VolumeStatus.__args__):
return

self.on_volume()

def _update_metadata(self, status: Status):
self._check_volume(status)
self._update_volume(status)

# wire up mpris_server with cc events
self.on_playback()
Expand Down

0 comments on commit 14feb07

Please sign in to comment.