Compare commits
2 Commits
933f895a67
...
2e8dab4bbe
Author | SHA1 | Date |
---|---|---|
kostas | 2e8dab4bbe | |
kostas | 5813ecfee3 |
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3 -u
|
||||
#!/usr/bin/python2 -u
|
||||
# coding=utf-8
|
||||
|
||||
import logging
|
||||
|
@ -12,7 +12,7 @@ import signals
|
|||
import config as cfg
|
||||
|
||||
from dbus.mainloop.glib import DBusGMainLoop
|
||||
from pymodbus.client import ModbusSerialClient as Modbus
|
||||
from pymodbus.client.sync import ModbusSerialClient as Modbus
|
||||
from pymodbus.exceptions import ModbusException, ModbusIOException
|
||||
from pymodbus.other_message import ReportSlaveIdRequest
|
||||
from pymodbus.pdu import ExceptionResponse
|
||||
|
@ -23,7 +23,7 @@ from python_libs.ie_dbus.dbus_service import DBusService
|
|||
# trick the pycharm type-checker into thinking Callable is in scope, not used at runtime
|
||||
# noinspection PyUnreachableCode
|
||||
if False:
|
||||
from typing import Callable, List, Iterable, NoReturn
|
||||
from typing import Callable, List, Iterable, NoReturn
|
||||
|
||||
RESET_REGISTER = 0x2087
|
||||
SETTINGS_SERVICE_PREFIX = 'com.victronenergy.settings'
|
||||
|
|
Loading…
Reference in New Issue