 
       @framework.deviceManager.registerDeviceClass("ParticleVariable", {
         configDef: deviceConfigDef.ParticleVariable,
-        createCallback: (config, lastState) => new ParticleVariable(config, authToken, lastState)
+        createCallback: (config, lastState) => new ParticleVariable(config, lastState)
       })
 
   #############################################################################

    init: (app, @framework, @config) =>
      deviceConfigDef = require("./device-config-schema")

      authToken = config.auth
      esConfig = headers: 'Authorization': 'Bearer ' + authToken
      es = new EventSource(EVENTS_URL, esConfig)
      es.onerror = ->
        console.log 'ERROR!'
        return

      @framework.deviceManager.registerDeviceClass("ParticlePresenceSensor", {
        configDef: deviceConfigDef.ParticlePresenceSensor,

        description: "The current value of the Variable"
        type: "string"

    constructor: (@config, lastState) ->
      @name = config.name
      @id = config.id
      @coreid = config.coreid
