Fix PyLint issues

pull/156/head^2
Paulus Schoutsen 2015-05-31 22:13:02 -07:00
parent 15c3e2f516
commit 3b43fe7431
2 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ def volume_mute(hass, entity_id=None):
def volume_set(hass, entity_id=None, volume=None):
""" Send the media player the command to set the volume at a given level. """
""" Set volume on media player. """
data = {
key: value for key, value in [
(ATTR_ENTITY_ID, entity_id),

View File

@ -159,11 +159,11 @@ class CastDevice(MediaPlayerDevice):
self.cast.volume_down()
def volume_mute(self, mute):
""" Service to send the chromecast the command to mute (true) or unmute (false). """
""" Set media player to mute volume. """
self.cast.set_volume_muted(mute)
def volume_set(self, volume):
""" Service to send the chromecast the command to set the volume level. """
""" Set media player volume, range of volume 0..1 """
self.cast.set_volume(volume)
def media_play_pause(self):