diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-06-12 16:34:01 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-06-12 16:34:03 +0300 |
commit | 600fdf99ffd893857c9cdb9e68140766a963bd17 (patch) | |
tree | d552b945e0ebb1ed1cf8e9687eaa8ddafc7a4dcf | |
parent | c69ad683dc8f84b217ef532a580a82801f19e20d (diff) |
inverter_bot: fix
-rwxr-xr-x | src/inverter_bot.py | 2 | ||||
-rwxr-xr-x | src/test/test_inverter_monitor.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/inverter_bot.py b/src/inverter_bot.py index 5b3fe45..5ad5e33 100755 --- a/src/inverter_bot.py +++ b/src/inverter_bot.py @@ -452,7 +452,7 @@ class InverterBot(Wrapper): if __name__ == '__main__': config.load('inverter_bot') - inverter.schema_init(host=config['inverter']['ip'], port=config['inverter']['port']) + inverter.init(host=config['inverter']['ip'], port=config['inverter']['port']) monitor = InverterMonitor() monitor.set_charging_event_handler(monitor_charging) diff --git a/src/test/test_inverter_monitor.py b/src/test/test_inverter_monitor.py index 4cccb77..d9b63d3 100755 --- a/src/test/test_inverter_monitor.py +++ b/src/test/test_inverter_monitor.py @@ -347,8 +347,8 @@ def main(): charger.start() # init inverterd wrapper - inverter.schema_init(host=config['inverter']['host'], - port=config['inverter']['port']) + inverter.init(host=config['inverter']['host'], + port=config['inverter']['port']) # start monitor mon = InverterMonitor() |