Skip to content

Commit

Permalink
Add new const for keypad; fix re syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwww committed Sep 30, 2024
1 parent db98401 commit 65339dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/cmdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def parse_range(rng, max):


def parse_element_command(cmd, line, max):
match = re.match("([\d,\- <*]+)(\w*.*)", line)
match = re.match("([\\d,\\- <*]+)(\\w*.*)", line)
if match:
ids = parse_range(match.groups()[0], max)
subcommand = parse_subcommand(match.groups()[1])
Expand Down
1 change: 1 addition & 0 deletions elkm1_lib/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ class ZoneAlarmState(Enum):
class KeypadKeys(Enum):
"""Keys on the keypad."""

NO_KEY = 0
USER_CODE_ENTERED = 0
STAR = 11
POUND = 12
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "elkm1-lib"
version = "2.2.7"
version = "2.2.8"
description = "Library for interacting with ElkM1 alarm/automation panel."
readme = "README.md"
requires-python = ">= 3.11"
Expand Down

0 comments on commit 65339dd

Please sign in to comment.