From 8dac4bb98fbf9e310fe60c3ca08c4990c1e7ae97 Mon Sep 17 00:00:00 2001 From: sfstar Date: Fri, 28 Feb 2025 13:08:34 +0000 Subject: [PATCH] remove commented code --- custom_components/victron/coordinator.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/custom_components/victron/coordinator.py b/custom_components/victron/coordinator.py index 4e47a94..93ef06a 100644 --- a/custom_components/victron/coordinator.py +++ b/custom_components/victron/coordinator.py @@ -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: @@ -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