Skip to content

Commit

Permalink
Merge pull request #2 from sweebee/master
Browse files Browse the repository at this point in the history
Fix for pimatic v0.9.0
  • Loading branch information
mwittig committed Mar 22, 2016
2 parents 767d953 + cb33d1a commit 2004572
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions fronius-solar.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ module.exports = (env) ->
class FroniusBaseDevice extends env.devices.Device
# Initialize device by reading entity definition from middleware
constructor: (@config, @plugin) ->
@debug = plugin.config.debug;
@debug = @plugin.config.debug;
env.logger.debug("FroniusSolarBaseDevice Initialization") if @debug
@id = config.id
@name = config.name
@interval = 1000 * @_normalize config.interval, 10, 86400
@threshold = config.threshold
@id = @config.id
@name = @config.name
@interval = 1000 * @_normalize @config.interval, 10, 86400
@threshold = @config.threshold
@options = {
deviceId: config.deviceId,
host: config.host,
port: config.port,
deviceId: @config.deviceId,
host: @config.host,
port: @config.port,
timeout: Math.min @interval, 20000
}
@_lastError = ""
Expand Down Expand Up @@ -212,4 +212,4 @@ module.exports = (env) ->
# Create a instance of my plugin
myPlugin = new FroniusSolarPlugin
# and return it to the framework.
return myPlugin
return myPlugin

0 comments on commit 2004572

Please sign in to comment.