Stop reporting max_volume in Lyngdorf diagnostics (#180828)

This commit is contained in:
Alex Fishlock
2026-08-30 19:44:05 +02:00
committed by GitHub
parent a9ba568154
commit 29223d3908
3 changed files with 0 additions and 3 deletions
@@ -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,
-1
View File
@@ -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,