Skip to content

Commit ca893b3

Browse files
committed
Remove unused import of Endian from pymodbus.constants
1 parent ba48c85 commit ca893b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

custom_components/sigen/modbus.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from homeassistant.core import HomeAssistant
1313
from homeassistant.exceptions import HomeAssistantError
1414
from pymodbus.client import AsyncModbusTcpClient
15-
from pymodbus.constants import Endian
1615
from pymodbus.exceptions import ConnectionException, ModbusException
1716
from pymodbus.client.mixin import ModbusClientMixin
1817
from pymodbus import __version__ as pymodbus_version
@@ -1209,4 +1208,4 @@ async def async_write_parameter(
12091208
except SigenergyModbusError as ex:
12101209
_LOGGER.error("Failed to write %s parameter '%s' (device: %s): %s",
12111210
device_type, register_name, device_identifier or 'plant', ex)
1212-
raise # Re-raise the specific error
1211+
raise # Re-raise the specific error

0 commit comments

Comments
 (0)