Skip to content

Commit

Permalink
fix: regex for set dimmer command
Browse files Browse the repository at this point in the history
similar to openhab#98
  • Loading branch information
mikejgray committed Feb 6, 2024
1 parent 9308378 commit acd612d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locale/en-us/regex/dimmer_command.rx
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
(set) (?P<Item>.*)(?: to )?(?P<BrightPercentage>\d+)(?: percent)?
(set) (?P<Item>.*?)(?: to )?(?P<BrightPercentage>\d*)?(?: percent)?$
(dim|bright) (?P<Item>.*?)(?: by )?(?P<BrightPercentage>\d*)?(?: percent)?$

0 comments on commit acd612d

Please sign in to comment.