This commit is contained in:
Evgeny Zinoviev 2023-05-31 22:28:29 +03:00
parent 8a7b41688f
commit 357d3ac030

View File

@ -96,13 +96,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('done'))
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('done'))
notify(ctx.user, UserAction.WATERING_OFF)
# notify(ctx.user, UserAction.WATERING_OFF)
def notify(user: User, action: UserAction) -> None: