Bump Devialet to 1.5.7 (#136114)

This commit is contained in:
fwestenberg
2025-01-21 08:46:32 +01:00
committed by GitHub
parent fb4df00e3c
commit 0254be78d6
9 changed files with 44 additions and 15 deletions

View File

@ -7,6 +7,6 @@
"documentation": "https://www.home-assistant.io/integrations/devialet",
"integration_type": "device",
"iot_class": "local_polling",
"requirements": ["devialet==1.4.5"],
"requirements": ["devialet==1.5.7"],
"zeroconf": ["_devialet-http._tcp.local."]
}

View File

@ -122,10 +122,10 @@ class DevialetMediaPlayerEntity(
if self.coordinator.client.source_state is None:
return features
if not self.coordinator.client.available_options:
if not self.coordinator.client.available_operations:
return features
for option in self.coordinator.client.available_options:
for option in self.coordinator.client.available_operations:
features |= DEVIALET_TO_HA_FEATURE_MAP.get(option, 0)
return features

2
requirements_all.txt generated
View File

@ -761,7 +761,7 @@ demetriek==1.2.0
denonavr==1.0.1
# homeassistant.components.devialet
devialet==1.4.5
devialet==1.5.7
# homeassistant.components.devolo_home_control
devolo-home-control-api==0.18.3

View File

@ -651,7 +651,7 @@ demetriek==1.2.0
denonavr==1.0.1
# homeassistant.components.devialet
devialet==1.4.5
devialet==1.5.7
# homeassistant.components.devolo_home_control
devolo-home-control-api==0.18.3

View File

@ -1,18 +1,22 @@
{
"availableFeatures": ["powerManagement"],
"deviceId": "1abcdef2-3456-67g8-9h0i-1jk23456lm78",
"deviceName": "Livingroom",
"firmwareFamily": "DOS",
"groupId": "12345678-901a-2b3c-def4-567g89h0i12j",
"installationId": "abc1eca1-1234-5251-a123-12ac1a3e9fe8",
"ipControlVersion": "1",
"isSystemLeader": true,
"model": "Phantom I Silver",
"modelFamily": "Phantom I",
"powerRating": "105 dB",
"release": {
"buildType": "release",
"canonicalVersion": "2.16.1.49152",
"version": "2.16.1"
"canonicalVersion": "2.17.6.49152",
"version": "2.17.6"
},
"role": "FrontLeft",
"serial": "L00P00000AB11",
"standbyEntryDelay": 0,
"standbyState": "Unknown",
"setupState": "ongoing",
"systemId": "a12b345c-67d8-90e1-12f4-g5hij67890kl"
}

View File

@ -1,5 +1,5 @@
{
"availableOptions": ["play", "pause", "previous", "next", "seek"],
"availableOperations": ["play", "pause", "previous", "next", "seek"],
"metadata": {
"album": "1 (Remastered)",
"artist": "The Beatles",

View File

@ -1,6 +1,29 @@
{
"availableFeatures": ["nightMode", "equalizer", "balance"],
"availableFeatures": [
"nightMode",
"equalizer",
"balance",
"preferredInterfaceControl"
],
"devices": [
{
"deviceId": "1abcdef2-3456-67g8-9h0i-1jk23456lm78",
"isSystemLeader": true,
"name": "Livingroom",
"role": null,
"serial": "L05P00066EW14"
},
{
"deviceId": "1zzyyxx2-3456-67g8-9h0i-1zz23456lz78",
"isSystemLeader": false,
"name": "Phantom I Silver-123a",
"role": null,
"serial": "M05P00066EW15"
}
],
"groupId": "12345678-901a-2b3c-def4-567g89h0i12j",
"multiroomFamily": "sync33",
"systemId": "a12b345c-67d8-90e1-12f4-g5hij67890kl",
"systemName": "Devialet"
"systemName": "Devialet",
"systemType": "stereo"
}

View File

@ -31,11 +31,13 @@ async def test_diagnostics(
"source_list": [
"Airplay",
"Bluetooth",
"Online",
"Optical left",
"Optical right",
"Raat",
"Spotify Connect",
"UPnP",
],
"source": "spotifyconnect",
"upnp_device_type": "Not available",
"upnp_device_url": "Not available",
}

View File

@ -96,7 +96,7 @@ SERVICE_TO_DATA = {
],
SERVICE_SELECT_SOURCE: [
{ATTR_INPUT_SOURCE: "Optical left"},
{ATTR_INPUT_SOURCE: "Online"},
{ATTR_INPUT_SOURCE: "UPnP"},
],
}
@ -203,7 +203,7 @@ async def test_media_player_playing(
)
with patch.object(
DevialetApi, "available_options", new_callable=PropertyMock
DevialetApi, "available_operations", new_callable=PropertyMock
) as mock:
mock.return_value = None
await hass.config_entries.async_reload(entry.entry_id)