def ThermoSensorToProto(record, full=False): ret = models_pb2.ThermoSensor() ret.id = record.id log = record.LastLog() if log: ret.last_log.MergeFrom(ToProto(log)) # Deprecated ret.sensor_name = record.raw_name ret.nice_name = record.nice_name return ret
def ThermoSensorToProto(record, full=False): ret = models_pb2.ThermoSensor() ret.id = record.seqn ret.sensor_name = record.raw_name ret.nice_name = record.nice_name return ret