@@ -195,14 +195,22 @@ async def async_is_audio_enabled(
195195 )
196196 return is_enabled [channel ]
197197
198- def set_audio_enabled (self , enable : bool , * , channel : int = 0 ) -> None :
198+ def set_audio_enabled (
199+ self , enable : bool , * , channel : int = 0 , stream : str = "Main"
200+ ) -> None :
199201 """Enable/disable all audio streams on given channel."""
200- self .command (utils .enable_audio_video_cmd ("Audio" , enable , channel ))
202+ self .command (
203+ utils .enable_audio_video_cmd (
204+ "Audio" , enable , channel , stream = stream
205+ )
206+ )
201207
202208 async def async_set_audio_enabled (
203- self , enable : bool , * , channel : int = 0
209+ self , enable : bool , * , channel : int = 0 , stream : str = "Main"
204210 ) -> None :
205211 """Enable/disable all audio streams on given channel."""
206212 await self .async_command (
207- utils .enable_audio_video_cmd ("Audio" , enable , channel )
213+ utils .enable_audio_video_cmd (
214+ "Audio" , enable , channel , stream = stream
215+ )
208216 )
0 commit comments