Mercurial > templog
changeset 534:0cc7f2dda0e8
missing sensor.py
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 05 May 2015 21:29:19 +0800 |
parents | 815f811f6a65 |
children | 3a514fbb88eb a57f1932f05a |
files | py/sensor.py |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/py/sensor.py Tue May 05 21:29:19 2015 +0800 @@ -0,0 +1,10 @@ +import os + +def make_sensor(server): + if server.test_mode(): + import sensor_test + return sensor_test.SensorTest(server) + else: + import sensor_ds18b20 + return sensor_ds18b20.SensorDS18B20(server) +