Skip to content

Commit

Permalink
Add main method to example
Browse files Browse the repository at this point in the history
  • Loading branch information
rroemhild committed May 9, 2019
1 parent b1572b8 commit dcb64d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/ds18b20/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,11 @@ def c_to_f(c):
return (c * 1.8) + 32


def main():
homie = HomieDevice(settings)
homie.add_node(DS18B20())
homie.start()


if __name__ == "__main__":
main()

0 comments on commit dcb64d9

Please sign in to comment.