Skip to content

Commit

Permalink
Merge pull request #2353 from GHYOON/datapublisher
Browse files Browse the repository at this point in the history
modify return value of _get_unit
  • Loading branch information
craig8 authored Jul 31, 2020
2 parents 8ba4ea8 + 4781f07 commit 3b207fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/DataPublisher/datapublisher/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def _get_unit(point, unittype_map):
for k, v in unittype_map.items():
if re.match(k, point):
return v
return 'percent'
return {'type': 'float'}

def _publish_point_all(self, topic, data, meta_data, headers):
# makesure topic+point gives a true value.
Expand Down

0 comments on commit 3b207fa

Please sign in to comment.