Skip to content

Commit

Permalink
Merge pull request #1 from jneilliii/dev
Browse files Browse the repository at this point in the history
Merge dev
  • Loading branch information
jneilliii authored Sep 3, 2017
2 parents ee6e2f6 + eeb1757 commit 997ce74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion octoprint_tplinksmartplug/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def sendCommand(self, cmd):
self._logger.info("Sending command %s" % cmd)
return json.loads(self.decrypt(data[4:]))
except socket.error:
self._logger.info("Error sending command")
self._logger.info("Could not connect to ip %s." % self._settings.get(["ip"]))
return {"system":{"get_sysinfo":{"relay_state":3}}}

##~~ Softwareupdate hook

Expand Down
1 change: 0 additions & 1 deletion octoprint_tplinksmartplug/static/css/tplinksmartplug.css

This file was deleted.

1 change: 1 addition & 0 deletions octoprint_tplinksmartplug/static/js/tplinksmartplug.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ $(function() {
self.connectOnPowerOn(self.settings.settings.plugins.tplinksmartplug.connectOnPowerOn());
self.connectOnPowerOnDelay(self.settings.settings.plugins.tplinksmartplug.connectOnPowerOnDelay());
self.enablePowerOffWarningDialog(self.settings.settings.plugins.tplinksmartplug.enablePowerOffWarningDialog());
self.checkStatus();
}

self.onDataUpdaterPluginMessage = function(plugin, data) {
Expand Down

0 comments on commit 997ce74

Please sign in to comment.