mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +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]:
|
||||
"""Return diagnostics for a config entry."""
|
||||
client = entry.runtime_data.client
|
||||
return await client.get_raw_devices()
|
||||
return {"devices": await client.get_raw_devices()}
|
||||
|
||||
|
||||
async def async_get_device_diagnostics(
|
||||
|
@ -29,5 +29,5 @@
|
||||
"documentation": "https://www.home-assistant.io/integrations/smartthings",
|
||||
"iot_class": "cloud_push",
|
||||
"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
|
||||
|
||||
# homeassistant.components.smartthings
|
||||
pysmartthings==2.7.2
|
||||
pysmartthings==2.7.4
|
||||
|
||||
# homeassistant.components.smarty
|
||||
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
|
||||
|
||||
# homeassistant.components.smartthings
|
||||
pysmartthings==2.7.2
|
||||
pysmartthings==2.7.4
|
||||
|
||||
# homeassistant.components.smarty
|
||||
pysmarty2==0.10.2
|
||||
|
@ -1,5 +1,7 @@
|
||||
# serializer version: 1
|
||||
# name: test_config_entry_diagnostics[da_ac_rac_000001]
|
||||
dict({
|
||||
'devices': list([
|
||||
dict({
|
||||
'_links': dict({
|
||||
}),
|
||||
@ -304,6 +306,8 @@
|
||||
'type': 'OCF',
|
||||
}),
|
||||
]),
|
||||
}),
|
||||
]),
|
||||
})
|
||||
# ---
|
||||
# name: test_device_diagnostics[da_ac_rac_000001]
|
||||
|
@ -30,9 +30,9 @@ async def test_config_entry_diagnostics(
|
||||
snapshot: SnapshotAssertion,
|
||||
) -> None:
|
||||
"""Test generating diagnostics for a device entry."""
|
||||
mock_smartthings.get_raw_devices.return_value = load_json_object_fixture(
|
||||
"devices/da_ac_rac_000001.json", DOMAIN
|
||||
)
|
||||
mock_smartthings.get_raw_devices.return_value = [
|
||||
load_json_object_fixture("devices/da_ac_rac_000001.json", DOMAIN)
|
||||
]
|
||||
await setup_integration(hass, mock_config_entry)
|
||||
assert (
|
||||
await get_diagnostics_for_config_entry(hass, hass_client, mock_config_entry)
|
||||
|
Loading…
x
Reference in New Issue
Block a user