Mercurial > templog
view py/sensor.py @ 273:74c3ae4e3307
syntax fixes, doesn't make sense yet for asyncio
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 17 Nov 2015 22:26:00 +0800 |
parents | 4cbcbba567ab |
children |
line wrap: on
line source
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)