mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Bump pySmartThings to 2.7.4 (#140720)
* Bump pySmartThings to 2.7.3 * Bump pySmartThings to 2.7.3 * Fix * Fix * Fix
This commit is contained in:
parent
c6d3928ed1
commit
827d5256c6
@ -23,7 +23,7 @@ async def async_get_config_entry_diagnostics(
|
|||||||
) -> dict[str, Any]:
|
) -> dict[str, Any]:
|
||||||
"""Return diagnostics for a config entry."""
|
"""Return diagnostics for a config entry."""
|
||||||
client = entry.runtime_data.client
|
client = entry.runtime_data.client
|
||||||
return await client.get_raw_devices()
|
return {"devices": await client.get_raw_devices()}
|
||||||
|
|
||||||
|
|
||||||
async def async_get_device_diagnostics(
|
async def async_get_device_diagnostics(
|
||||||
|
@ -29,5 +29,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/smartthings",
|
"documentation": "https://www.home-assistant.io/integrations/smartthings",
|
||||||
"iot_class": "cloud_push",
|
"iot_class": "cloud_push",
|
||||||
"loggers": ["pysmartthings"],
|
"loggers": ["pysmartthings"],
|
||||||
"requirements": ["pysmartthings==2.7.2"]
|
"requirements": ["pysmartthings==2.7.4"]
|
||||||
}
|
}
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -2314,7 +2314,7 @@ pysma==0.7.5
|
|||||||
pysmappee==0.2.29
|
pysmappee==0.2.29
|
||||||
|
|
||||||
# homeassistant.components.smartthings
|
# homeassistant.components.smartthings
|
||||||
pysmartthings==2.7.2
|
pysmartthings==2.7.4
|
||||||
|
|
||||||
# homeassistant.components.smarty
|
# homeassistant.components.smarty
|
||||||
pysmarty2==0.10.2
|
pysmarty2==0.10.2
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -1883,7 +1883,7 @@ pysma==0.7.5
|
|||||||
pysmappee==0.2.29
|
pysmappee==0.2.29
|
||||||
|
|
||||||
# homeassistant.components.smartthings
|
# homeassistant.components.smartthings
|
||||||
pysmartthings==2.7.2
|
pysmartthings==2.7.4
|
||||||
|
|
||||||
# homeassistant.components.smarty
|
# homeassistant.components.smarty
|
||||||
pysmarty2==0.10.2
|
pysmarty2==0.10.2
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# serializer version: 1
|
# serializer version: 1
|
||||||
# name: test_config_entry_diagnostics[da_ac_rac_000001]
|
# name: test_config_entry_diagnostics[da_ac_rac_000001]
|
||||||
|
dict({
|
||||||
|
'devices': list([
|
||||||
dict({
|
dict({
|
||||||
'_links': dict({
|
'_links': dict({
|
||||||
}),
|
}),
|
||||||
@ -304,6 +306,8 @@
|
|||||||
'type': 'OCF',
|
'type': 'OCF',
|
||||||
}),
|
}),
|
||||||
]),
|
]),
|
||||||
|
}),
|
||||||
|
]),
|
||||||
})
|
})
|
||||||
# ---
|
# ---
|
||||||
# name: test_device_diagnostics[da_ac_rac_000001]
|
# name: test_device_diagnostics[da_ac_rac_000001]
|
||||||
|
@ -30,9 +30,9 @@ async def test_config_entry_diagnostics(
|
|||||||
snapshot: SnapshotAssertion,
|
snapshot: SnapshotAssertion,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test generating diagnostics for a device entry."""
|
"""Test generating diagnostics for a device entry."""
|
||||||
mock_smartthings.get_raw_devices.return_value = load_json_object_fixture(
|
mock_smartthings.get_raw_devices.return_value = [
|
||||||
"devices/da_ac_rac_000001.json", DOMAIN
|
load_json_object_fixture("devices/da_ac_rac_000001.json", DOMAIN)
|
||||||
)
|
]
|
||||||
await setup_integration(hass, mock_config_entry)
|
await setup_integration(hass, mock_config_entry)
|
||||||
assert (
|
assert (
|
||||||
await get_diagnostics_for_config_entry(hass, hass_client, mock_config_entry)
|
await get_diagnostics_for_config_entry(hass, hass_client, mock_config_entry)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user