summaryrefslogtreecommitdiff
path: root/src/inverter-bot
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-11-02 22:01:13 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-11-02 22:01:13 +0300
commitfea7da54303f97ff9749bced89ba727e03106f8f (patch)
tree122812baf200f2239ca092a7eea640aeb8e02991 /src/inverter-bot
parenteb970844576f0f9d84b5a385f615582b50e0afa9 (diff)
remove /test command handler
Diffstat (limited to 'src/inverter-bot')
-rwxr-xr-xsrc/inverter-bot5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/inverter-bot b/src/inverter-bot
index e5d9fc6..f4691f7 100755
--- a/src/inverter-bot
+++ b/src/inverter-bot
@@ -328,10 +328,6 @@ def on_errors(update: Update, context: CallbackContext) -> None:
handle_exc(update, e)
-def on_test(update: Update, context: CallbackContext) -> None:
- monitor_charging_event_handler(ChargingEvent.AC_CURRENT_CHANGED, current=20)
-
-
def on_button(update: Update, context: CallbackContext) -> None:
query = update.callback_query
@@ -450,7 +446,6 @@ if __name__ == '__main__':
dispatcher.add_handler(CommandHandler('status', on_status))
dispatcher.add_handler(CommandHandler('config', on_config))
dispatcher.add_handler(CommandHandler('errors', on_errors))
- dispatcher.add_handler(CommandHandler('test', on_test))
dispatcher.add_handler(MessageHandler(Filters.all & user_filter, msg_all))