Allow string values on zwave.set_node_value (#31061)
* Allow string values on zwave.set_node_value This allows for: * Accessing longer value_ids. In some cases, value ids in z-wave nodes are very large (17 digits in my case). Passing them as int does not seem to work well (python probably truncates the number), but passing them as string works fine * Changing color values, which are represented as hex string reformat test * update services.yaml with string set_node_value
This commit is contained in:
1 parent
1d3647e6a1
commit
eac1f029e5
3 files changed
+29
-4
No files matched your search
@@ -126,8 +126,8 @@ SET_CONFIG_PARAMETER_SCHEMA = vol.Schema(
|
||||
SET_NODE_VALUE_SCHEMA = vol.Schema(
|
||||
{
|
||||
vol.Required(const.ATTR_NODE_ID): vol.Coerce(int),
|
||||
vol.Required(const.ATTR_VALUE_ID): vol.Coerce(int),
|
||||
vol.Required(const.ATTR_CONFIG_VALUE): vol.Coerce(int),
|
||||
vol.Required(const.ATTR_VALUE_ID): vol.Any(vol.Coerce(int), cv.string),
|
||||
vol.Required(const.ATTR_CONFIG_VALUE): vol.Any(vol.Coerce(int), cv.string),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user