File: common.py

package info (click to toggle)
zwave-js-server-python 0.67.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,820 kB
  • sloc: python: 15,886; sh: 21; javascript: 16; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 632 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""Provide common tools for testing Z-Wave JS server models."""

from zwave_js_server.model.firmware import FirmwareUpdateInfoDataType

FIRMWARE_UPDATE_INFO = FirmwareUpdateInfoDataType(
    **{
        "version": "1.0.0",
        "changelog": "changelog",
        "channel": "stable",
        "files": [{"target": 0, "url": "http://example.com", "integrity": "test"}],
        "downgrade": True,
        "normalizedVersion": "1.0.0",
        "device": {
            "manufacturerId": 1,
            "productType": 2,
            "productId": 3,
            "firmwareVersion": "0.4.4",
            "rfRegion": 1,
        },
    }
)