view py/sensor.py @ 637:1e147b3c2c55 rust

update deps
author Matt Johnston <matt@ucc.asn.au>
date Sat, 09 Nov 2019 11:35:43 +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)