Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
sfstar committed Feb 28, 2025
1 parent 4deeb0f commit 8dac4bb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions custom_components/victron/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ async def _async_update_data(self) -> dict:
# TODO change this to work with partial updates
for key in register_info_dict[name]:
full_key = str(unit) + "." + key
# self.data["data"][full_key] = None
available_entities[full_key] = False

_LOGGER.warning(
"No valid data returned for entities of slave: %s (if the device continues to no longer update) check if the device was physically removed. Before opening an issue please force a rescan to attempt to resolve this issue",
"No valid data: %s returned for entities of slave: %s (if the device continues to no longer update) check if the device was physically removed. Before opening an issue please force a rescan to attempt to resolve this issue",
data,
unit,
)
else:
Expand Down Expand Up @@ -203,14 +203,8 @@ async def fetch_registers(self, unit, registerData):

def write_register(self, unit, address, value):
"""Write to the register."""
# try:

self.api_write(unit, address, value)

# except HomeAssistantError as e:
# TODO raise specific write error
# _LOGGER.error("failed to write to option:", e

def api_write(self, unit, address, value):
"""Write to the api."""
# recycle connection
Expand Down

0 comments on commit 8dac4bb

Please sign in to comment.