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:
Joost Lekkerkerker 2025-03-20 11:02:51 +01:00 committed by GitHub
parent c6d3928ed1
commit 827d5256c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 303 additions and 299 deletions

View File

@ -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(

View File

@ -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
View File

@ -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

View File

@ -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

View File

@ -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]

View File

@ -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)