Skip to content

Commit a229030

Browse files
Format with ruff
1 parent 202a428 commit a229030

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

custom_components/solaredge_modbus_multi/config_flow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ async def async_step_reconfigure(
140140
elif not 1 <= inverter_count <= 32:
141141
errors[ConfName.DEVICE_LIST] = "invalid_inverter_count"
142142
else:
143-
144143
user_input[ConfName.DEVICE_LIST] = device_list_from_string(
145144
user_input[ConfName.DEVICE_LIST]
146145
)

custom_components/solaredge_modbus_multi/hub.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ async def _async_init_solaredge(self) -> None:
253253
)
254254

255255
for inverter_unit_id in self._inverter_list:
256-
257256
try:
258257
_LOGGER.debug(
259258
f"Looking for inverter at {self.hub_host} ID {inverter_unit_id}"
@@ -530,7 +529,6 @@ async def modbus_read_holding_registers(self, unit, address, rcount):
530529
)
531530

532531
if result.isError():
533-
534532
if type(result) is ModbusIOException:
535533
raise ModbusIOError(result)
536534

@@ -1149,7 +1147,6 @@ async def read_modbus_data(self) -> None:
11491147
)
11501148

11511149
if self.decoded_mmppt["mmppt_Units"] in [2, 3]:
1152-
11531150
int16_fields = [
11541151
"mmppt_DCA_SF",
11551152
"mmppt_DCV_SF",

0 commit comments

Comments
 (0)