fix optional parameters for change_audio_config
This commit is contained in:
parent
258ea2b9b6
commit
ffac7ee2c0
@ -284,7 +284,7 @@ class ComputerSwitch(SwitchEntity):
|
|||||||
else:
|
else:
|
||||||
raise HomeAssistantError("You must specify an action.")
|
raise HomeAssistantError("You must specify an action.")
|
||||||
|
|
||||||
def change_audio_config(self, volume: int, mute: bool, input_device: str, output_device: str) -> None:
|
def change_audio_config(self, volume: int = None, mute: bool = None, input_device: str = None, output_device: str = None) -> None:
|
||||||
"""Change the audio configuration using a YAML config file."""
|
"""Change the audio configuration using a YAML config file."""
|
||||||
utils.change_audio_config(self._connection, volume, mute, input_device, output_device)
|
utils.change_audio_config(self._connection, volume, mute, input_device, output_device)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user