mirror of
https://github.com/home-assistant/core.git
synced 2026-07-07 14:56:25 +01:00
Bump mozart_api to 6.2.0.44.0 (#173514)
This commit is contained in:
@@ -6,6 +6,6 @@
|
||||
"documentation": "https://www.home-assistant.io/integrations/bang_olufsen",
|
||||
"integration_type": "device",
|
||||
"iot_class": "local_push",
|
||||
"requirements": ["mozart-api==5.3.1.108.2"],
|
||||
"requirements": ["mozart-api==6.2.0.44.0"],
|
||||
"zeroconf": ["_bangolufsen._tcp.local."]
|
||||
}
|
||||
|
||||
Generated
+1
-1
@@ -1610,7 +1610,7 @@ motionblindsble==0.1.3
|
||||
motioneye-client==0.3.14
|
||||
|
||||
# homeassistant.components.bang_olufsen
|
||||
mozart-api==5.3.1.108.2
|
||||
mozart-api==6.2.0.44.0
|
||||
|
||||
# homeassistant.components.mullvad
|
||||
mullvad-api==1.0.0
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from collections.abc import Generator
|
||||
from unittest.mock import AsyncMock, Mock, patch
|
||||
from uuid import UUID
|
||||
|
||||
from mozart_api.models import (
|
||||
Action,
|
||||
@@ -254,8 +255,8 @@ def mock_mozart_client() -> Generator[AsyncMock]:
|
||||
dynamic_list=None,
|
||||
first_child_menu_item_id=None,
|
||||
label="Yle Radio Suomi Helsinki",
|
||||
next_sibling_menu_item_id="0b4552f8-7ac6-5046-9d44-5410a815b8d6",
|
||||
parent_menu_item_id="eee0c2d0-2b3a-4899-a708-658475c38926",
|
||||
next_sibling_menu_item_id=UUID("0b4552f8-7ac6-5046-9d44-5410a815b8d6"),
|
||||
parent_menu_item_id=UUID("eee0c2d0-2b3a-4899-a708-658475c38926"),
|
||||
available=None,
|
||||
content=ContentItem(
|
||||
categories=["music"],
|
||||
@@ -264,7 +265,7 @@ def mock_mozart_client() -> Generator[AsyncMock]:
|
||||
source=SourceTypeEnum(value="netRadio"),
|
||||
),
|
||||
fixed=True,
|
||||
id="b355888b-2cde-5f94-8592-d47b71d52a27",
|
||||
id=UUID("b355888b-2cde-5f94-8592-d47b71d52a27"),
|
||||
),
|
||||
# Has "hdmi" as category, so should be included in video sources
|
||||
"b6591565-80f4-4356-bcd9-c92ca247f0a9": RemoteMenuItem(
|
||||
@@ -293,8 +294,8 @@ def mock_mozart_client() -> Generator[AsyncMock]:
|
||||
dynamic_list="none",
|
||||
first_child_menu_item_id=None,
|
||||
label="HDMI A",
|
||||
next_sibling_menu_item_id="0ba98974-7b1f-40dc-bc48-fbacbb0f1793",
|
||||
parent_menu_item_id="b66c835b-6b98-4400-8f84-6348043792c7",
|
||||
next_sibling_menu_item_id=UUID("0ba98974-7b1f-40dc-bc48-fbacbb0f1793"),
|
||||
parent_menu_item_id=UUID("b66c835b-6b98-4400-8f84-6348043792c7"),
|
||||
available=True,
|
||||
content=ContentItem(
|
||||
categories=["hdmi"],
|
||||
@@ -303,7 +304,7 @@ def mock_mozart_client() -> Generator[AsyncMock]:
|
||||
source=SourceTypeEnum(value="tv"),
|
||||
),
|
||||
fixed=False,
|
||||
id="b6591565-80f4-4356-bcd9-c92ca247f0a9",
|
||||
id=UUID("b6591565-80f4-4356-bcd9-c92ca247f0a9"),
|
||||
),
|
||||
# The parent remote menu item. Has the TV label and
|
||||
# should therefore not be included in video sources
|
||||
@@ -312,14 +313,14 @@ def mock_mozart_client() -> Generator[AsyncMock]:
|
||||
scene_list=None,
|
||||
disabled=False,
|
||||
dynamic_list="none",
|
||||
first_child_menu_item_id="b6591565-80f4-4356-bcd9-c92ca247f0a9",
|
||||
first_child_menu_item_id=UUID("b6591565-80f4-4356-bcd9-c92ca247f0a9"),
|
||||
label="TV",
|
||||
next_sibling_menu_item_id="0c4547fe-d3cc-4348-a425-473595b8c9fb",
|
||||
next_sibling_menu_item_id=UUID("0c4547fe-d3cc-4348-a425-473595b8c9fb"),
|
||||
parent_menu_item_id=None,
|
||||
available=True,
|
||||
content=None,
|
||||
fixed=True,
|
||||
id="b66c835b-6b98-4400-8f84-6348043792c7",
|
||||
id=UUID("b66c835b-6b98-4400-8f84-6348043792c7"),
|
||||
),
|
||||
# Has an empty content, so should not be included
|
||||
"64c9da45-3682-44a4-8030-09ed3ef44160": RemoteMenuItem(
|
||||
@@ -330,11 +331,11 @@ def mock_mozart_client() -> Generator[AsyncMock]:
|
||||
first_child_menu_item_id=None,
|
||||
label="ListeningPosition",
|
||||
next_sibling_menu_item_id=None,
|
||||
parent_menu_item_id="0c4547fe-d3cc-4348-a425-473595b8c9fb",
|
||||
parent_menu_item_id=UUID("0c4547fe-d3cc-4348-a425-473595b8c9fb"),
|
||||
available=True,
|
||||
content=None,
|
||||
fixed=True,
|
||||
id="64c9da45-3682-44a4-8030-09ed3ef44160",
|
||||
id=UUID("64c9da45-3682-44a4-8030-09ed3ef44160"),
|
||||
),
|
||||
}
|
||||
client.get_beolink_peers = AsyncMock()
|
||||
@@ -343,11 +344,13 @@ def mock_mozart_client() -> Generator[AsyncMock]:
|
||||
friendly_name=TEST_FRIENDLY_NAME_3,
|
||||
jid=TEST_JID_3,
|
||||
ip_address=TEST_HOST_3,
|
||||
audio_transport="v2",
|
||||
),
|
||||
BeolinkPeer(
|
||||
friendly_name=TEST_FRIENDLY_NAME_4,
|
||||
jid=TEST_JID_4,
|
||||
ip_address=TEST_HOST_4,
|
||||
audio_transport="v2",
|
||||
),
|
||||
]
|
||||
client.get_beolink_listeners = AsyncMock()
|
||||
@@ -356,11 +359,13 @@ def mock_mozart_client() -> Generator[AsyncMock]:
|
||||
friendly_name=TEST_FRIENDLY_NAME_3,
|
||||
jid=TEST_JID_3,
|
||||
ip_address=TEST_HOST_3,
|
||||
audio_transport="v2",
|
||||
),
|
||||
BeolinkPeer(
|
||||
friendly_name=TEST_FRIENDLY_NAME_4,
|
||||
jid=TEST_JID_4,
|
||||
ip_address=TEST_HOST_4,
|
||||
audio_transport="v2",
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@ TEST_PLAYBACK_METADATA_VIDEO = PlaybackContentMetadata(
|
||||
title="HDMI A",
|
||||
source_internal_id="hdmi_1",
|
||||
output_channel_processing="TrueImage",
|
||||
output_Channels="5.0.2",
|
||||
output_channels="5.0.2",
|
||||
)
|
||||
TEST_PLAYBACK_ERROR = PlaybackError(error="Test error")
|
||||
TEST_PLAYBACK_PROGRESS = PlaybackProgress(progress=123)
|
||||
|
||||
@@ -582,7 +582,7 @@ async def test_async_update_beolink_listener(
|
||||
playback_metadata_callback(
|
||||
PlaybackContentMetadata(
|
||||
remote_leader=BeolinkLeader(
|
||||
friendly_name=TEST_FRIENDLY_NAME_2, jid=TEST_JID_2
|
||||
friendly_name=TEST_FRIENDLY_NAME_2, jid=TEST_JID_2, audio_transport="v2"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user