summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/inverter_bot.py2
-rwxr-xr-xsrc/test/test_inverter_monitor.py4
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()