# HG changeset patch # User Matt Johnston # Date 1430832559 -28800 # Node ID 0cc7f2dda0e8ec9d499cdc452956c0008f2ef297 # Parent 815f811f6a65d6a403a5d18c3337532d94dbdea7 missing sensor.py diff -r 815f811f6a65 -r 0cc7f2dda0e8 py/sensor.py --- /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) +