def request_set_sensor_unreachable(self, req, sensor_name):
        """Set sensor status to unreachable"""
        sensor = self.get_sensor(sensor_name)
        ts, status, value = sensor.read()
        sensor.set_value(value, sensor.UNREACHABLE, ts)
        return('ok',)
def request_set_sensor_unreachable ( self , req , sensor_name ) : sensor = self . get_sensor ( sensor_name ) ts , status , value = sensor . read ( ) sensor . set_value ( value , sensor . UNREACHABLE , ts ) return ( 'ok' , )
Set sensor status to unreachable