From 1d71359f448bba8be5b3e9d0094b06349162144f Mon Sep 17 00:00:00 2001 From: Christopher Fenner <9592452+CFenner@users.noreply.github.com> Date: Wed, 2 Oct 2024 09:43:32 +0200 Subject: [PATCH] chore(testdata): Add repeater data (#417) * Create zigbee_zk05390.json * adjust test case * Rename zigbee_zk05390.json to zigbee_zk05390_repeater.json --- tests/response/zigbee_zk05390_repeater.json | 55 +++++++++++++++++++++ tests/test_TestForMissingProperties.py | 1 + 2 files changed, 56 insertions(+) create mode 100644 tests/response/zigbee_zk05390_repeater.json diff --git a/tests/response/zigbee_zk05390_repeater.json b/tests/response/zigbee_zk05390_repeater.json new file mode 100644 index 00000000..a1385bff --- /dev/null +++ b/tests/response/zigbee_zk05390_repeater.json @@ -0,0 +1,55 @@ +{ + "data": [ + { + "apiVersion": 1, + "commands": {}, + "deviceId": "zigbee-142d41fffe8797bd", + "feature": "device.messages.errors.raw", + "gatewayId": "################", + "isEnabled": true, + "isReady": true, + "properties": { + "entries": { + "type": "array", + "value": [] + } + }, + "timestamp": "2024-10-01T00:31:25.951Z", + "uri": "https://api.viessmann.com/iot/v1/features/installations/#######/gateways/################/devices/zigbee-142d41fffe8797bd/features/device.messages.errors.raw" + }, + { + "apiVersion": 1, + "commands": { + "setName": { + "isExecutable": true, + "name": "setName", + "params": { + "name": { + "constraints": { + "maxLength": 40, + "minLength": 1, + "regEx": "^[\\p{L}0-9]+( [\\p{L}0-9]+)*$" + }, + "required": true, + "type": "string" + } + }, + "uri": "https://api.viessmann.com/iot/v1/features/installations/#######/gateways/################/devices/zigbee-142d41fffe8797bd/features/device.name/commands/setName" + } + }, + "deviceId": "zigbee-142d41fffe8797bd", + "feature": "device.name", + "gatewayId": "################", + "isEnabled": true, + "isReady": true, + "properties": { + "name": { + "type": "string", + "value": "Erdgeschoss" + } + }, + "timestamp": "2024-10-01T00:31:25.951Z", + "uri": "https://api.viessmann.com/iot/v1/features/installations/#######/gateways/################/devices/zigbee-142d41fffe8797bd/features/device.name" + } + ] +} diff --git a/tests/test_TestForMissingProperties.py b/tests/test_TestForMissingProperties.py index 44b913e8..db3c3674 100644 --- a/tests/test_TestForMissingProperties.py +++ b/tests/test_TestForMissingProperties.py @@ -66,6 +66,7 @@ def test_missingProperties(self): # Ignored for now as they are not documented in https://documentation.viessmann.com/static/iot/data-points 'device.messages.errors.raw', + 'device.name', 'device.productIdentification', 'device.productMatrix', 'heating.device.variant',