mirror of
https://github.com/home-assistant/core.git
synced 2026-09-25 17:04:04 -04:00
Stop reporting max_volume in Lyngdorf diagnostics (#180828)
This commit is contained in:
@@ -73,7 +73,6 @@ async def async_get_config_entry_diagnostics(
|
||||
"model": receiver.model.name,
|
||||
"power_on": receiver.power_on,
|
||||
"volume": volume.value if volume is not None else None,
|
||||
"max_volume": receiver.max_volume,
|
||||
"mute_enabled": receiver.muted,
|
||||
"source": receiver.source,
|
||||
"available_sources": receiver.sources,
|
||||
|
||||
@@ -115,7 +115,6 @@ def mock_receiver(mock_create_receiver: MagicMock) -> MagicMock:
|
||||
# Diagnostics reports the whole receiver, so every property it reads
|
||||
# needs a value here; an unset one is a mock the response cannot encode.
|
||||
receiver.model = LyngdorfModel.MP_60
|
||||
receiver.max_volume = 0.0
|
||||
receiver.room_perfect_position = "Focus 1"
|
||||
receiver.available_room_perfect_positions = ["Global", "Focus 1"]
|
||||
receiver.room_perfect_positions = ["Global", "Focus 1"]
|
||||
|
||||
@@ -90,7 +90,6 @@
|
||||
]),
|
||||
'connected': True,
|
||||
'lipsync': 50.0,
|
||||
'max_volume': 0.0,
|
||||
'model': 'MP_60',
|
||||
'mute_enabled': False,
|
||||
'power_on': False,
|
||||
|
||||
Reference in New Issue
Block a user