Skip to content

Commit c1273b7

Browse files
Format with black and ruff
1 parent a49c684 commit c1273b7

File tree

1 file changed

+3
-7
lines changed
  • custom_components/solaredge_modbus_multi

1 file changed

+3
-7
lines changed

custom_components/solaredge_modbus_multi/hub.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from pymodbus.client import AsyncModbusTcpClient
1515
from pymodbus.client.mixin import ModbusClientMixin
1616
from pymodbus.exceptions import ConnectionException, ModbusIOException
17+
1718
try:
1819
from pymodbus.pdu.pdu import ExceptionResponse
1920
except ImportError:
@@ -107,7 +108,6 @@ class DeviceInvalid(SolarEdgeException):
107108

108109

109110
class SolarEdgeModbusMultiHub:
110-
111111
def __init__(
112112
self,
113113
hass: HomeAssistant,
@@ -545,14 +545,10 @@ async def modbus_read_holding_registers(self, unit, address, rcount):
545545
address=self._rr_address, count=self._rr_count, slave=self._rr_unit
546546
)
547547

548-
_LOGGER.debug(
549-
f"I{self._rr_unit}: result is error: {result.isError()} "
550-
)
548+
_LOGGER.debug(f"I{self._rr_unit}: result is error: {result.isError()} ")
551549

552550
if result.isError():
553-
_LOGGER.debug(
554-
f"I{self._rr_unit}: error result: {type(result)} "
555-
)
551+
_LOGGER.debug(f"I{self._rr_unit}: error result: {type(result)} ")
556552

557553
if type(result) is ModbusIOException:
558554
raise ModbusIOError(result)

0 commit comments

Comments
 (0)