Skip to content

Commit 6367335

Browse files
committed
Improve comment
1 parent d87cdc2 commit 6367335

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/plugwise/coordinator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ async def _async_add_remove_devices(self, data: dict[str, GwEntityData]) -> None
160160
"""Add new Plugwise devices, remove non-existing devices."""
161161
set_of_data = set(data)
162162
# Check for new or removed devices,
163-
# new_devices contains all devices present in data at init (self._current_devices is empty)
164-
# for the proper initialization of all the present platform entities.
163+
# 'new_devices' contains all devices present in 'data' at init ('self._current_devices' is empty)
164+
# this is required for the proper initialization of all the present platform entities.
165165
self.new_devices = set_of_data - self._current_devices
166166
current_devices = self._stored_devices if not self._current_devices else self._current_devices
167167
self._current_devices = set_of_data

0 commit comments

Comments
 (0)