Skip to content

Commit 707bb85

Browse files
committed
Fixing minor bug after last cleanup
1 parent 5fef0ba commit 707bb85

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

  • custom_components/victron_mqtt

custom_components/victron_mqtt/hub.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,6 @@ async def start(self):
9696
@callback
9797
async def stop(self, event: Event):
9898
_LOGGER.info("Stopping hub")
99-
100-
# Cancel the periodic update task
101-
if self._update_task_unsub is not None:
102-
self._update_task_unsub()
103-
self._update_task_unsub = None
104-
_LOGGER.info("Stopped periodic update task")
105-
10699
await self._hub.disconnect()
107100

108101
def on_new_metric(self, hub: VictronVenusHub, device: VictronVenusDevice, metric: VictronVenusMetric):

0 commit comments

Comments
 (0)