summaryrefslogtreecommitdiff
path: root/src/pump_bot.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-05-31 23:48:34 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-05-31 23:48:34 +0300
commit14e0b39b083fd654ab30cfcb206a87c79cfcea5c (patch)
treef05666f93149d1a325dac1094ce79982360f78b3 /src/pump_bot.py
parentbc98775dd7a3417f24ad1369a8e1a60994d131cc (diff)
fix
Diffstat (limited to 'src/pump_bot.py')
-rwxr-xr-xsrc/pump_bot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pump_bot.py b/src/pump_bot.py
index 5239cfb..fa884ab 100755
--- a/src/pump_bot.py
+++ b/src/pump_bot.py
@@ -119,13 +119,13 @@ def off(ctx: bot.Context, silent=False) -> None:
def watering_on(ctx: bot.Context) -> None:
mqtt_relay_module.switchpower(mqtt, True, config.get('mqtt_water_relay.secret'))
ctx.reply(ctx.lang('sent'))
- # notify(ctx.user, UserAction.WATERING_ON)
+ notify(ctx.user, UserAction.WATERING_ON)
def watering_off(ctx: bot.Context) -> None:
mqtt_relay_module.switchpower(mqtt, False, config.get('mqtt_water_relay.secret'))
ctx.reply(ctx.lang('sent'))
- # notify(ctx.user, UserAction.WATERING_OFF)
+ notify(ctx.user, UserAction.WATERING_OFF)
def notify(user: User, action: UserAction) -> None: