diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-11-02 22:01:13 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-11-02 22:01:13 +0300 |
commit | fea7da54303f97ff9749bced89ba727e03106f8f (patch) | |
tree | 122812baf200f2239ca092a7eea640aeb8e02991 /src/inverter-bot | |
parent | eb970844576f0f9d84b5a385f615582b50e0afa9 (diff) |
remove /test command handler
Diffstat (limited to 'src/inverter-bot')
-rwxr-xr-x | src/inverter-bot | 5 |
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)) |