From 3e05777163f5e19a6ca6a743ac75bc470625a117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Rom=C3=A1n?= Date: Fri, 15 Sep 2023 16:38:08 -0700 Subject: [PATCH] feat(system): add Ignition 8.1.32 new features --- .github/workflows/main.yml | 2 +- stubs/system/bacnet/__init__.pyi | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 61365f8..204e71b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,6 @@ on: jobs: test: - uses: coatl-dev/workflows/.github/workflows/tox-envs.yml@v5 + uses: coatl-dev/workflows/.github/workflows/tox-envs.yml@v6 with: python-versions: '["3.7", "3.8", "3.9", "3.10", "3.11"]' diff --git a/stubs/system/bacnet/__init__.pyi b/stubs/system/bacnet/__init__.pyi index 8f51e4e..664a332 100644 --- a/stubs/system/bacnet/__init__.pyi +++ b/stubs/system/bacnet/__init__.pyi @@ -10,6 +10,12 @@ def readRaw( propertyId: PropertyIdentifier, propertyArrayIndex: Optional[int] = ..., ) -> List[Any]: ... +def readRawMultiple( + deviceName: AnyStr, + objectTypes: List[ObjectType], + objectIds: List[int], + propertyIds: List[PropertyIdentifier], +) -> List[Any]: ... def synchronizeTime(deviceName: AnyStr) -> None: ... def synchronizeTimeUtc(deviceName: AnyStr) -> None: ... def writeRaw( @@ -18,8 +24,17 @@ def writeRaw( objectId: int, propertyId: PropertyIdentifier, value: Any, - priority: int, - propertyArrayIndex: int, + priority: int = ..., + propertyArrayIndex: Optional[int] = ..., +) -> None: ... +def writeRawMultiple( + deviceName: AnyStr, + objectTypes: List[ObjectType], + objectIds: List[int], + propertyIds: List[PropertyIdentifier], + values: List[Any], + priorities: Optional[List[int]] = ..., + propertyArrayIndices: Optional[List[int]] = ..., ) -> None: ... def writeWithPriority( deviceName: AnyStr, objectType: int, objectId: int, value: Any, priority: int