wip
This commit is contained in:
parent
8a7b41688f
commit
357d3ac030
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user