Skip to content

Commit

Permalink
a little code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jneilliii committed Jul 10, 2021
1 parent 9a96253 commit 90c2e71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions octoprint_tasmota/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
from __future__ import absolute_import

import octoprint.plugin
from octoprint.access.permissions import Permissions, ADMIN_GROUP, USER_GROUP
from octoprint.access.permissions import Permissions, ADMIN_GROUP
from octoprint.util import RepeatedTimer
from octoprint.events import eventManager, Events
from octoprint.events import Events
from flask_babel import gettext
import time
import logging
Expand All @@ -18,7 +18,7 @@

try:
from octoprint.util import ResettableTimer
except:
except ImportError:
class ResettableTimer(threading.Thread):
def __init__(self, interval, function, args=None, kwargs=None, on_reset=None, on_cancelled=None):
threading.Thread.__init__(self)
Expand Down Expand Up @@ -644,7 +644,7 @@ def on_api_command(self, command, data):
self._tasmota_logger.debug("Restarting idle timer.")
self._reset_idle_timer()
elif command == 'getEnergyData':
self._logger.info(data);
self._logger.info(data)
response = {}
if "start_date" in data and data["start_date"] != "":
start_date = data["start_date"]
Expand Down
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@
###

.

setuptools
OctoPrint
requests
Flask
uptime

0 comments on commit 90c2e71

Please sign in to comment.