Skip to content

Commit d250626

Browse files
committed
Propagate cache state change from network to each node
1 parent d35cfd1 commit d250626

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plugwise_usb/network/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ def cache_enabled(self) -> bool:
8989
def cache_enabled(self, enable: bool = True) -> None:
9090
"""Enable or disable usage of cache of network register."""
9191
self._register.cache_enabled = enable
92+
if self._cache_enabled != enable:
93+
for node in self._nodes.values():
94+
node.cache_enabled = enable
9295
self._cache_enabled = enable
9396

9497
@property

0 commit comments

Comments
 (0)