From 943c80ba486053bdddaa2ef3f0e0fa981318374f Mon Sep 17 00:00:00 2001 From: sdb9696 Date: Thu, 28 Mar 2024 11:26:12 +0000 Subject: [PATCH] Make test_update_module_queries python3.8 compliant --- kasa/tests/test_smartdevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kasa/tests/test_smartdevice.py b/kasa/tests/test_smartdevice.py index d7b1cca9d..306a4b3da 100644 --- a/kasa/tests/test_smartdevice.py +++ b/kasa/tests/test_smartdevice.py @@ -99,6 +99,6 @@ async def test_update_module_queries(dev: SmartDevice, mocker: MockerFixture): await dev.update() full_query: Dict[str, Any] = {} for mod in dev.modules.values(): - full_query |= mod.query() + full_query = {**full_query, **mod.query()} query.assert_called_with(full_query)