Fix PyLint issues
parent
15c3e2f516
commit
3b43fe7431
|
@ -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),
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue