#16 Codereview Octoprint Plugin Repo
This commit is contained in:
parent
c56b076620
commit
ccc58f9301
@ -197,11 +197,16 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
|
|||||||
ip=None,
|
ip=None,
|
||||||
intervall=1,
|
intervall=1,
|
||||||
onOffButtonEnabled=False,
|
onOffButtonEnabled=False,
|
||||||
owerOnOnStart=False,
|
powerOnOnStart=False,
|
||||||
powerOffOnShutdown=False,
|
powerOffOnShutdown=False,
|
||||||
powerOffDelay=0
|
powerOffDelay=0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def get_settings_restricted_paths(self):
|
||||||
|
return dict(admin=[
|
||||||
|
['ip']
|
||||||
|
])
|
||||||
|
|
||||||
def on_settings_save(self, data):
|
def on_settings_save(self, data):
|
||||||
self._logger.info("on_settings_save")
|
self._logger.info("on_settings_save")
|
||||||
octoprint.plugin.SettingsPlugin.on_settings_save(self, data)
|
octoprint.plugin.SettingsPlugin.on_settings_save(self, data)
|
||||||
|
2
setup.py
2
setup.py
@ -14,7 +14,7 @@ plugin_package = "octoprint_mystromswitch"
|
|||||||
plugin_name = "OctoPrint-MyStromSwitch"
|
plugin_name = "OctoPrint-MyStromSwitch"
|
||||||
|
|
||||||
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
|
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
|
||||||
plugin_version = "1.0.0"
|
plugin_version = "1.0.1"
|
||||||
|
|
||||||
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
||||||
# module
|
# module
|
||||||
|
Loading…
Reference in New Issue
Block a user