diff --git a/script/refresh_stubs.py b/script/refresh_stubs.py index 12316b6..a2220c1 100644 --- a/script/refresh_stubs.py +++ b/script/refresh_stubs.py @@ -10,6 +10,7 @@ ("module-definition-test", "test", "de-DE"), ("xknx_test_project", "test", None), ("test_project-ets4", "test", "de-DE"), + ("testprojekt-ets6-functions", None, "de-DE"), ] for file_name, password, language in file_names: diff --git a/test/resources/stubs/module-definition-test.json b/test/resources/stubs/module-definition-test.json index 1766bbe..b2c7ff9 100644 --- a/test/resources/stubs/module-definition-test.json +++ b/test/resources/stubs/module-definition-test.json @@ -8,7 +8,7 @@ "created_by": "ETS5", "schema_version": "20", "tool_version": "5.7.1428.39779", - "xknxproject_version": "3.0.0", + "xknxproject_version": "3.2.0", "language_code": "de-DE" }, "communication_objects": { @@ -388,4 +388,4 @@ } }, "functions": {} -} +} \ No newline at end of file diff --git a/test/resources/stubs/test_project-ets4.json b/test/resources/stubs/test_project-ets4.json index 8aa9edd..66427a4 100644 --- a/test/resources/stubs/test_project-ets4.json +++ b/test/resources/stubs/test_project-ets4.json @@ -8,7 +8,7 @@ "created_by": "ETS4", "schema_version": "11", "tool_version": "ETS 4.2.0 (Build 3884)", - "xknxproject_version": "3.1.1", + "xknxproject_version": "3.2.0", "language_code": "de-DE" }, "communication_objects": { @@ -313,4 +313,4 @@ } }, "functions": {} -} +} \ No newline at end of file diff --git a/test/resources/stubs/testprojekt-ets6-functions.json b/test/resources/stubs/testprojekt-ets6-functions.json index a2dd78e..9242990 100644 --- a/test/resources/stubs/testprojekt-ets6-functions.json +++ b/test/resources/stubs/testprojekt-ets6-functions.json @@ -1,131 +1,131 @@ { - "info": { - "project_id": "P-05C0", - "name": "Minimal-Example", - "last_modified": "2023-07-07T12:41:11.4132414Z", - "group_address_style": "ThreeLevel", - "guid": "efabc0f9-4e81-440d-a236-b80913e85730", - "created_by": "ETS6", - "schema_version": "22", - "tool_version": "6.1.5686.0", - "xknxproject_version": "3.2.0", - "language_code": "de-DE" + "info": { + "project_id": "P-05C0", + "name": "Minimal-Example", + "last_modified": "2023-07-07T12:41:11.4132414Z", + "group_address_style": "ThreeLevel", + "guid": "efabc0f9-4e81-440d-a236-b80913e85730", + "created_by": "ETS6", + "schema_version": "22", + "tool_version": "6.1.5686.0", + "xknxproject_version": "3.2.0", + "language_code": "de-DE" + }, + "communication_objects": {}, + "topology": { + "0": { + "name": "", + "description": null, + "lines": { + "0": { + "name": "", + "description": null, + "devices": [], + "medium_type": "KNXnet/IP (IP)" + } + } }, - "communication_objects": {}, - "topology": { + "1": { + "name": "", + "description": null, + "lines": { "0": { - "name": "", - "description": null, - "lines": { - "0": { - "name": "", - "description": null, - "devices": [], - "medium_type": "KNXnet/IP (IP)" - } - } + "name": "", + "description": null, + "devices": [], + "medium_type": "KNXnet/IP (IP)" }, "1": { - "name": "", - "description": null, - "lines": { - "0": { - "name": "", - "description": null, - "devices": [], - "medium_type": "KNXnet/IP (IP)" - }, - "1": { - "name": "", - "description": null, - "devices": [], - "medium_type": "Twisted Pair (TP)" - } - } + "name": "", + "description": null, + "devices": [], + "medium_type": "Twisted Pair (TP)" } + } + } + }, + "devices": {}, + "group_addresses": { + "0/0/1": { + "name": "Schalten", + "identifier": "GA-1", + "raw_address": 1, + "address": "0/0/1", + "project_uid": 14, + "dpt": { + "main": 1, + "sub": 1 + }, + "communication_object_ids": [], + "description": "Livingroom LivingroomLight" }, - "devices": {}, - "group_addresses": { + "0/0/2": { + "name": "Status", + "identifier": "GA-2", + "raw_address": 2, + "address": "0/0/2", + "project_uid": 16, + "dpt": { + "main": 1, + "sub": 1 + }, + "communication_object_ids": [], + "description": "Livingroom LivingroomLight" + } + }, + "locations": { + "Minimal-Example": { + "type": "Building", + "identifier": "P-05C0-0_BP-1", + "name": "Minimal-Example", + "usage_id": null, + "usage_text": "", + "number": "", + "description": "", + "project_uid": 9, + "devices": [], + "spaces": { + "Livingroom": { + "type": "Room", + "identifier": "P-05C0-0_BP-2", + "name": "Livingroom", + "usage_id": "SU-4", + "usage_text": "Wohnzimmer", + "number": "", + "description": "", + "project_uid": 10, + "devices": [], + "spaces": {}, + "functions": [ + "F-1" + ] + } + }, + "functions": [] + } + }, + "functions": { + "F-1": { + "function_type": "FT-1", + "group_addresses": { "0/0/1": { - "name": "Schalten", - "identifier": "GA-1", - "raw_address": 1, - "address": "0/0/1", - "project_uid": 14, - "dpt": { - "main": 1, - "sub": 1 - }, - "communication_object_ids": [], - "description": "Livingroom LivingroomLight" + "address": "0/0/1", + "name": "", + "project_uid": 15, + "role": "SwitchOnOff" }, "0/0/2": { - "name": "Status", - "identifier": "GA-2", - "raw_address": 2, - "address": "0/0/2", - "project_uid": 16, - "dpt": { - "main": 1, - "sub": 1 - }, - "communication_object_ids": [], - "description": "Livingroom LivingroomLight" - } - }, - "locations": { - "Minimal-Example": { - "type": "Building", - "identifier": "P-05C0-0_BP-1", - "name": "Minimal-Example", - "usage_id": null, - "usage_text": "", - "number": "", - "description": "", - "project_uid": 9, - "devices": [], - "spaces": { - "Livingroom": { - "type": "Room", - "identifier": "P-05C0-0_BP-2", - "name": "Livingroom", - "usage_id": "SU-4", - "usage_text": "Wohnzimmer", - "number": "", - "description": "", - "project_uid": 10, - "devices": [], - "spaces": {}, - "functions": [ - "F-1" - ] - } - }, - "functions": [] - } - }, - "functions": { - "F-1": { - "function_type": "FT-1", - "group_addresses": { - "0/0/1": { - "address": "0/0/1", - "name": "", - "project_uid": 15, - "role": "SwitchOnOff" - }, - "0/0/2": { - "address": "0/0/2", - "name": "", - "project_uid": 17, - "role": "InfoOnOff" - } - }, - "identifier": "F-1", - "name": "LivingroomLight", - "project_uid": 11, - "space_id": "P-05C0-0_BP-2", - "usage_text": "Licht schalten" + "address": "0/0/2", + "name": "", + "project_uid": 17, + "role": "InfoOnOff" } + }, + "identifier": "F-1", + "name": "LivingroomLight", + "project_uid": 11, + "space_id": "P-05C0-0_BP-2", + "usage_text": "Licht schalten" } -} + } +} \ No newline at end of file diff --git a/test/resources/stubs/xknx_test_project.json b/test/resources/stubs/xknx_test_project.json index 2127ae0..2ff8471 100644 --- a/test/resources/stubs/xknx_test_project.json +++ b/test/resources/stubs/xknx_test_project.json @@ -8,7 +8,7 @@ "created_by": "ETS5", "schema_version": "20", "tool_version": "5.7.1428.39779", - "xknxproject_version": "3.0.0", + "xknxproject_version": "3.2.0", "language_code": null }, "communication_objects": { @@ -674,4 +674,4 @@ } }, "functions": {} -} +} \ No newline at end of file