mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 18:27:51 +00:00
Fix malformed response in Bang & Olufsen testing (#125658)
Fix malformed SoftwareUpdateStatus object
This commit is contained in:
parent
afeab659e1
commit
3ea4c3b8bf
@ -13,6 +13,7 @@ from mozart_api.models import (
|
|||||||
ProductState,
|
ProductState,
|
||||||
RemoteMenuItem,
|
RemoteMenuItem,
|
||||||
RenderingState,
|
RenderingState,
|
||||||
|
SoftwareUpdateState,
|
||||||
SoftwareUpdateStatus,
|
SoftwareUpdateStatus,
|
||||||
Source,
|
Source,
|
||||||
SourceArray,
|
SourceArray,
|
||||||
@ -79,7 +80,7 @@ def mock_mozart_client() -> Generator[AsyncMock]:
|
|||||||
)
|
)
|
||||||
client.get_softwareupdate_status = AsyncMock()
|
client.get_softwareupdate_status = AsyncMock()
|
||||||
client.get_softwareupdate_status.return_value = SoftwareUpdateStatus(
|
client.get_softwareupdate_status.return_value = SoftwareUpdateStatus(
|
||||||
software_version="1.0.0", state=""
|
software_version="1.0.0", state=SoftwareUpdateState()
|
||||||
)
|
)
|
||||||
client.get_product_state = AsyncMock()
|
client.get_product_state = AsyncMock()
|
||||||
client.get_product_state.return_value = ProductState(
|
client.get_product_state.return_value = ProductState(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user