mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Fix pylint
This commit is contained in:
parent
b30bdbfc6a
commit
c445563ab1
@ -87,12 +87,14 @@ def volume_down(hass, entity_id=None):
|
|||||||
|
|
||||||
hass.services.call(DOMAIN, SERVICE_VOLUME_DOWN, data)
|
hass.services.call(DOMAIN, SERVICE_VOLUME_DOWN, data)
|
||||||
|
|
||||||
|
|
||||||
def volume_mute(hass, entity_id=None):
|
def volume_mute(hass, entity_id=None):
|
||||||
""" Send the media player the command for volume down. """
|
""" Send the media player the command for volume down. """
|
||||||
data = {ATTR_ENTITY_ID: entity_id} if entity_id else {}
|
data = {ATTR_ENTITY_ID: entity_id} if entity_id else {}
|
||||||
|
|
||||||
hass.services.call(DOMAIN, SERVICE_VOLUME_MUTE, data)
|
hass.services.call(DOMAIN, SERVICE_VOLUME_MUTE, data)
|
||||||
|
|
||||||
|
|
||||||
def volume_set(hass, entity_id=None, volume=None):
|
def volume_set(hass, entity_id=None, volume=None):
|
||||||
""" Send the media player the command for volume down. """
|
""" Send the media player the command for volume down. """
|
||||||
data = {
|
data = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user