def _add_sensor(self, sensorid): self.gw.sensors[sensorid] = my.Sensor(sensorid) return self.gw.sensors[sensorid]
def _add_sensor(self, sensorid): """Add sensor node. Return sensor node instance.""" self.gateway.sensors[sensorid] = my.Sensor(sensorid) return self.gateway.sensors[sensorid]