Skip to content

Commit

Permalink
variable fixes for v0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetpi committed Mar 25, 2016
1 parent 1538064 commit d0edc9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sysinfo.coffee
Expand Up @@ -22,15 +22,15 @@ module.exports = (env) ->

@framework.deviceManager.registerDeviceClass("SystemSensor", {
configDef: deviceConfigDef.SystemSensor,
createCallback: (config) => return new SystemSensor(config, framework)
createCallback: (config) => return new SystemSensor(config, @framework)
})

# ##LogWatcher Sensor
class SystemSensor extends env.devices.Sensor

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

@attributes = {}
# initialise all attributes
Expand Down

0 comments on commit d0edc9c

Please sign in to comment.