Skip to content

Commit

Permalink
Add support for SensorRetain
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-richter committed Sep 19, 2021
1 parent 956a7a1 commit 90ffb5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action_plugins/tasmota.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ def run(self, tmp=None, task_vars=None):
existing_value = self._translateResultStr(existing_value)
elif (command.startswith('PowerRetain')):
existing_value = self._translateResultStr(existing_value)
elif (command.startswith('SensorRetain')):
existing_value = self._translateResultStr(existing_value)
elif (command == 'Module'):
modules_ids = data.get(command).keys()
existing_value = next(iter(modules_ids))
Expand Down

0 comments on commit 90ffb5a

Please sign in to comment.