Skip to content

Commit

Permalink
gpio fix digital pulse message handler
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyIvan359 committed Dec 21, 2020
1 parent 9456b0c commit 1d03d0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

* **Fixed**
* Missing comma in Odroid C1+ and C2 board definitions.
* GPIO Digital pin pulse message handler using entire payload as state instead of
JSON property `'state'`.

## 0.12.2

Expand Down
2 changes: 1 addition & 1 deletion mqttany/modules/gpio/pin/digital.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def pulse(self, content: str):
)
return

state = str(resolve_type(content))
state = str(resolve_type(state))
if state in TEXT_STATE:
self._pulse(time, TEXT_STATE[state])
else:
Expand Down

0 comments on commit 1d03d0f

Please sign in to comment.