summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-10-21 01:13:58 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-10-21 01:13:58 +0300
commitb5b35fd30d79a032292c757f4ecbff37561bcbca (patch)
tree5d795e7e18440821b00ebb5ac257bb5fc24f983b /src
parentb1badba55e11e97f16a834631aac8d9ca09234c8 (diff)
fix, related to prev commit
Diffstat (limited to 'src')
-rwxr-xr-xsrc/inverter_bot.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/inverter_bot.py b/src/inverter_bot.py
index d4749d2..af60ba7 100755
--- a/src/inverter_bot.py
+++ b/src/inverter_bot.py
@@ -293,7 +293,7 @@ def setacmode(mode: ACMode):
def setosp(sp: OutputSourcePriority):
logger.debug(f'setosp: sp={sp}')
- inverter.exec('set-output-charge-priority', (sp,))
+ inverter.exec('set-output-source-priority', (sp,))
# /setacmode
@@ -396,7 +396,7 @@ def setosp_input(ctx: Context):
def setosp_invalid(ctx: Context):
- ctx.reply(ctx.lang('invalid_mode'), markup=IgnoreMarkup())
+ ctx.reply(ctx.lang('invalid_input'), markup=IgnoreMarkup())
return SETOSP_STARTED
@@ -495,6 +495,7 @@ class InverterBot(Wrapper):
select_ac_mode="Выберите режим:",
select_priortiy="Установите приоритет:",
invalid_input="Неверное значение",
+ invalid_mode="Invalid mode",
flags_press_button='Нажмите кнопку для переключения настройки',
flags_fail='Не удалось установить настройку',
@@ -570,6 +571,7 @@ class InverterBot(Wrapper):
select_ac_mode="Select AC input mode:",
select_priortiy="Select priority:",
invalid_input="Invalid input",
+ invalid_mode="Invalid mode",
flags_press_button='Press a button to toggle a flag.',
flags_fail='Failed to toggle flag',