From 1b4313eaa6a55ad06bdba5476b8f05f6968d1fcb Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Sat, 30 Dec 2023 20:14:24 +0100 Subject: [PATCH] fixed optional parameters change_audio_config service --- custom_components/easy_computer_manager/switch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/easy_computer_manager/switch.py b/custom_components/easy_computer_manager/switch.py index 4251eb5..515f321 100644 --- a/custom_components/easy_computer_manager/switch.py +++ b/custom_components/easy_computer_manager/switch.py @@ -284,7 +284,8 @@ class ComputerSwitch(SwitchEntity): else: raise HomeAssistantError("You must specify an action.") - def change_audio_config(self, volume: int = None, mute: bool = None, input_device: str = None, output_device: str = None) -> None: + def change_audio_config(self, volume: int | None = None, mute: bool | None = None, input_device: str | None = None, + output_device: str | None = None) -> None: """Change the audio configuration using a YAML config file.""" utils.change_audio_config(self._connection, volume, mute, input_device, output_device)