Skip to content

Commit

Permalink
Fix encoding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-richter committed Jan 9, 2020
1 parent 1026881 commit 130e871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action_plugins/tasmota.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def run(self, tmp=None, task_vars=None):
# Get the tasmota host
tasmota_host = self._get_arg_or_var('tasmota_host', task_vars['ansible_host'])
command = self._get_arg_or_var('command')
incoming_value = str(self._get_arg_or_var('value'))
incoming_value = self._get_arg_or_var('value')

except Exception as err:
display.v("got an exception: %s" % (err))
Expand All @@ -70,7 +70,7 @@ def run(self, tmp=None, task_vars=None):
# get response data
data = status_response.json()
display.v("data: %s" % (data))
existing_value = str(data.get(command))
existing_value = unicode(data.get(command))

if (command.startswith('Rule')):
display.vv("rule found!")
Expand Down

0 comments on commit 130e871

Please sign in to comment.