summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-10-21 01:14:48 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-10-21 01:14:48 +0300
commit34ad131e4bb60f4a0a993847e7d2d90413563bac (patch)
treeab098bd4bbb257bffd9f8e42c922ccfe22cf18d5
parentb5b35fd30d79a032292c757f4ecbff37561bcbca (diff)
fix setosp
-rwxr-xr-xsrc/inverter_bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inverter_bot.py b/src/inverter_bot.py
index af60ba7..3e281d3 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-source-priority', (sp,))
+ inverter.exec('set-output-source-priority', (sp.value,))
# /setacmode