From ffac7ee2c05e0eaba56fb66ab5df7b0cf76b9dd4 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Sat, 30 Dec 2023 19:20:28 +0100 Subject: [PATCH] fix optional parameters for change_audio_config --- custom_components/easy_computer_manager/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/easy_computer_manager/switch.py b/custom_components/easy_computer_manager/switch.py index aa8f9fd..4251eb5 100644 --- a/custom_components/easy_computer_manager/switch.py +++ b/custom_components/easy_computer_manager/switch.py @@ -284,7 +284,7 @@ class ComputerSwitch(SwitchEntity): else: 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.""" utils.change_audio_config(self._connection, volume, mute, input_device, output_device)