@@ -341,12 +341,12 @@ async def async_play_media(
341341 def process_update (self , message : status .Known ) -> None :
342342 """Process update."""
343343 match message :
344- case status .Power (status .Power .Param .ON ):
344+ case status .Power (param = status .Power .Param .ON ):
345345 self ._attr_state = MediaPlayerState .ON
346- case status .Power (status .Power .Param .STANDBY ):
346+ case status .Power (param = status .Power .Param .STANDBY ):
347347 self ._attr_state = MediaPlayerState .OFF
348348
349- case status .Volume (volume ):
349+ case status .Volume (param = volume ):
350350 if not self ._supports_volume :
351351 self ._attr_supported_features |= SUPPORTED_FEATURES_VOLUME
352352 self ._supports_volume = True
@@ -356,10 +356,10 @@ def process_update(self, message: status.Known) -> None:
356356 )
357357 self ._attr_volume_level = min (1 , volume_level )
358358
359- case status .Muting (muting ):
359+ case status .Muting (param = muting ):
360360 self ._attr_is_volume_muted = bool (muting == status .Muting .Param .ON )
361361
362- case status .InputSource (source ):
362+ case status .InputSource (param = source ):
363363 if source in self ._source_mapping :
364364 self ._attr_source = self ._source_mapping [source ]
365365 else :
@@ -373,7 +373,7 @@ def process_update(self, message: status.Known) -> None:
373373
374374 self ._query_av_info_delayed ()
375375
376- case status .ListeningMode (sound_mode ):
376+ case status .ListeningMode (param = sound_mode ):
377377 if not self ._supports_sound_mode :
378378 self ._attr_supported_features |= (
379379 MediaPlayerEntityFeature .SELECT_SOUND_MODE
@@ -393,13 +393,13 @@ def process_update(self, message: status.Known) -> None:
393393
394394 self ._query_av_info_delayed ()
395395
396- case status .HDMIOutput (hdmi_output ):
396+ case status .HDMIOutput (param = hdmi_output ):
397397 self ._attr_extra_state_attributes [ATTR_VIDEO_OUT ] = (
398398 self ._hdmi_output_mapping [hdmi_output ]
399399 )
400400 self ._query_av_info_delayed ()
401401
402- case status .TunerPreset (preset ):
402+ case status .TunerPreset (param = preset ):
403403 self ._attr_extra_state_attributes [ATTR_PRESET ] = preset
404404
405405 case status .AudioInformation ():
@@ -427,11 +427,11 @@ def process_update(self, message: status.Known) -> None:
427427 case status .FLDisplay ():
428428 self ._query_av_info_delayed ()
429429
430- case status .NotAvailable (Kind .AUDIO_INFORMATION ):
430+ case status .NotAvailable (kind = Kind .AUDIO_INFORMATION ):
431431 # Not available right now, but still supported
432432 self ._supports_audio_info = True
433433
434- case status .NotAvailable (Kind .VIDEO_INFORMATION ):
434+ case status .NotAvailable (kind = Kind .VIDEO_INFORMATION ):
435435 # Not available right now, but still supported
436436 self ._supports_video_info = True
437437
0 commit comments