Skip to content

Commit 7d0c13d

Browse files
Format with ruff
1 parent 6f280b2 commit 7d0c13d

File tree

1 file changed

+2
-6
lines changed
  • custom_components/solaredge_modbus_multi

1 file changed

+2
-6
lines changed

custom_components/solaredge_modbus_multi/hub.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ class DeviceInvalid(SolarEdgeException):
110110

111111

112112
class SolarEdgeModbusMultiHub:
113-
114113
def __init__(
115114
self,
116115
hass: HomeAssistant,
@@ -457,8 +456,7 @@ async def async_refresh_modbus_data(self) -> bool:
457456
self._timeout_counter += 1
458457

459458
_LOGGER.debug(
460-
f"Refresh timeout {self._timeout_counter} "
461-
f"limit {self._retry_limit}"
459+
f"Refresh timeout {self._timeout_counter} " f"limit {self._retry_limit}"
462460
)
463461

464462
if self._timeout_counter >= self._retry_limit:
@@ -662,9 +660,7 @@ async def write_registers(self, unit: int, address: int, payload) -> None:
662660
)
663661

664662
if result.exception_code == ModbusExceptions.IllegalValue:
665-
_LOGGER.debug(
666-
f"Unit {self._wr_unit} Write IllegalValue: {result}"
667-
)
663+
_LOGGER.debug(f"Unit {self._wr_unit} Write IllegalValue: {result}")
668664
raise HomeAssistantError(
669665
"Value invalid for device at ID {self._wr_unit}."
670666
)

0 commit comments

Comments
 (0)