Skip to content

Commit 8105288

Browse files
authored
add support for setValue options (#242)
1 parent 60117ff commit 8105288

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

zwave_js_server/model/value.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Provide a model for the Z-Wave JS value."""
2-
from typing import TYPE_CHECKING, Any, Dict, Optional, TypedDict, Union
2+
from typing import List, TYPE_CHECKING, Any, Dict, Optional, TypedDict, Union
33

44
from ..const import VALUE_UNKNOWN, CommandClass, ConfigurationValueType
55
from ..event import Event
@@ -22,6 +22,7 @@ class MetaDataType(TypedDict, total=False):
2222
unit: str
2323
states: Dict[int, str]
2424
ccSpecific: Dict[str, Any]
25+
valueChangeOptions: List[str]
2526
allowManualEntry: bool
2627
valueSize: int
2728

@@ -137,6 +138,11 @@ def cc_specific(self) -> Dict[str, Any]:
137138
"""Return ccSpecific."""
138139
return self.data.get("ccSpecific", {})
139140

141+
@property
142+
def value_change_options(self) -> List[str]:
143+
"""Return valueChangeOptions."""
144+
return self.data.get("valueChangeOptions", [])
145+
140146
@property
141147
def allow_manual_entry(self) -> Optional[bool]:
142148
"""Return allowManualEntry."""

0 commit comments

Comments
 (0)