mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Bump Devialet to 1.5.7 (#136114)
This commit is contained in:
parent
fb4df00e3c
commit
0254be78d6
@ -7,6 +7,6 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/devialet",
|
"documentation": "https://www.home-assistant.io/integrations/devialet",
|
||||||
"integration_type": "device",
|
"integration_type": "device",
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"requirements": ["devialet==1.4.5"],
|
"requirements": ["devialet==1.5.7"],
|
||||||
"zeroconf": ["_devialet-http._tcp.local."]
|
"zeroconf": ["_devialet-http._tcp.local."]
|
||||||
}
|
}
|
||||||
|
@ -122,10 +122,10 @@ class DevialetMediaPlayerEntity(
|
|||||||
if self.coordinator.client.source_state is None:
|
if self.coordinator.client.source_state is None:
|
||||||
return features
|
return features
|
||||||
|
|
||||||
if not self.coordinator.client.available_options:
|
if not self.coordinator.client.available_operations:
|
||||||
return features
|
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)
|
features |= DEVIALET_TO_HA_FEATURE_MAP.get(option, 0)
|
||||||
return features
|
return features
|
||||||
|
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -761,7 +761,7 @@ demetriek==1.2.0
|
|||||||
denonavr==1.0.1
|
denonavr==1.0.1
|
||||||
|
|
||||||
# homeassistant.components.devialet
|
# homeassistant.components.devialet
|
||||||
devialet==1.4.5
|
devialet==1.5.7
|
||||||
|
|
||||||
# homeassistant.components.devolo_home_control
|
# homeassistant.components.devolo_home_control
|
||||||
devolo-home-control-api==0.18.3
|
devolo-home-control-api==0.18.3
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -651,7 +651,7 @@ demetriek==1.2.0
|
|||||||
denonavr==1.0.1
|
denonavr==1.0.1
|
||||||
|
|
||||||
# homeassistant.components.devialet
|
# homeassistant.components.devialet
|
||||||
devialet==1.4.5
|
devialet==1.5.7
|
||||||
|
|
||||||
# homeassistant.components.devolo_home_control
|
# homeassistant.components.devolo_home_control
|
||||||
devolo-home-control-api==0.18.3
|
devolo-home-control-api==0.18.3
|
||||||
|
@ -1,18 +1,22 @@
|
|||||||
{
|
{
|
||||||
|
"availableFeatures": ["powerManagement"],
|
||||||
"deviceId": "1abcdef2-3456-67g8-9h0i-1jk23456lm78",
|
"deviceId": "1abcdef2-3456-67g8-9h0i-1jk23456lm78",
|
||||||
"deviceName": "Livingroom",
|
"deviceName": "Livingroom",
|
||||||
"firmwareFamily": "DOS",
|
"firmwareFamily": "DOS",
|
||||||
"groupId": "12345678-901a-2b3c-def4-567g89h0i12j",
|
"groupId": "12345678-901a-2b3c-def4-567g89h0i12j",
|
||||||
|
"installationId": "abc1eca1-1234-5251-a123-12ac1a3e9fe8",
|
||||||
"ipControlVersion": "1",
|
"ipControlVersion": "1",
|
||||||
|
"isSystemLeader": true,
|
||||||
"model": "Phantom I Silver",
|
"model": "Phantom I Silver",
|
||||||
|
"modelFamily": "Phantom I",
|
||||||
|
"powerRating": "105 dB",
|
||||||
"release": {
|
"release": {
|
||||||
"buildType": "release",
|
"buildType": "release",
|
||||||
"canonicalVersion": "2.16.1.49152",
|
"canonicalVersion": "2.17.6.49152",
|
||||||
"version": "2.16.1"
|
"version": "2.17.6"
|
||||||
},
|
},
|
||||||
"role": "FrontLeft",
|
"role": "FrontLeft",
|
||||||
"serial": "L00P00000AB11",
|
"serial": "L00P00000AB11",
|
||||||
"standbyEntryDelay": 0,
|
"setupState": "ongoing",
|
||||||
"standbyState": "Unknown",
|
|
||||||
"systemId": "a12b345c-67d8-90e1-12f4-g5hij67890kl"
|
"systemId": "a12b345c-67d8-90e1-12f4-g5hij67890kl"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"availableOptions": ["play", "pause", "previous", "next", "seek"],
|
"availableOperations": ["play", "pause", "previous", "next", "seek"],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"album": "1 (Remastered)",
|
"album": "1 (Remastered)",
|
||||||
"artist": "The Beatles",
|
"artist": "The Beatles",
|
||||||
|
@ -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",
|
"groupId": "12345678-901a-2b3c-def4-567g89h0i12j",
|
||||||
|
"multiroomFamily": "sync33",
|
||||||
"systemId": "a12b345c-67d8-90e1-12f4-g5hij67890kl",
|
"systemId": "a12b345c-67d8-90e1-12f4-g5hij67890kl",
|
||||||
"systemName": "Devialet"
|
"systemName": "Devialet",
|
||||||
|
"systemType": "stereo"
|
||||||
}
|
}
|
||||||
|
@ -31,11 +31,13 @@ async def test_diagnostics(
|
|||||||
"source_list": [
|
"source_list": [
|
||||||
"Airplay",
|
"Airplay",
|
||||||
"Bluetooth",
|
"Bluetooth",
|
||||||
"Online",
|
|
||||||
"Optical left",
|
"Optical left",
|
||||||
"Optical right",
|
"Optical right",
|
||||||
"Raat",
|
"Raat",
|
||||||
"Spotify Connect",
|
"Spotify Connect",
|
||||||
|
"UPnP",
|
||||||
],
|
],
|
||||||
"source": "spotifyconnect",
|
"source": "spotifyconnect",
|
||||||
|
"upnp_device_type": "Not available",
|
||||||
|
"upnp_device_url": "Not available",
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ SERVICE_TO_DATA = {
|
|||||||
],
|
],
|
||||||
SERVICE_SELECT_SOURCE: [
|
SERVICE_SELECT_SOURCE: [
|
||||||
{ATTR_INPUT_SOURCE: "Optical left"},
|
{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(
|
with patch.object(
|
||||||
DevialetApi, "available_options", new_callable=PropertyMock
|
DevialetApi, "available_operations", new_callable=PropertyMock
|
||||||
) as mock:
|
) as mock:
|
||||||
mock.return_value = None
|
mock.return_value = None
|
||||||
await hass.config_entries.async_reload(entry.entry_id)
|
await hass.config_entries.async_reload(entry.entry_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user