Skip to content

Commit

Permalink
ruff remaining errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sfstar committed Jan 29, 2025
1 parent 20cab7f commit a7fbc31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom_components/victron/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ async def async_setup_entry(
for name in registerLedger:
for register_name, registerInfo in register_info_dict[name].items():
_LOGGER.debug(
f"unit == {slave} registerLedger == {registerLedger} registerInfo "
"unit == %s registerLedger == %s registerInfo == %s",
slave,
registerLedger,
registerInfo,
)

if isinstance(registerInfo.entityType, SwitchWriteType):
Expand Down Expand Up @@ -81,6 +84,7 @@ def __init__(
coordinator: victronEnergyDeviceUpdateCoordinator,
description: VictronEntityDescription,
) -> None:
"""Initialize the switch."""
self.coordinator = coordinator
self.description: VictronEntityDescription = description
self._attr_name = f"{description.name}"
Expand Down

0 comments on commit a7fbc31

Please sign in to comment.