moat-kv-ow 0.9.3__tar.gz → 0.9.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {moat-kv-ow-0.9.3/moat_kv_ow.egg-info → moat-kv-ow-0.9.4}/PKG-INFO +1 -1
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/moat/kv/ow/model.py +3 -3
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4/moat_kv_ow.egg-info}/PKG-INFO +1 -1
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/.gitignore +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/.pylintrc +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/Makefile +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/README.rst +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/TODO.rst +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/USAGE.rst +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/moat/kv/ow/__init__.py +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/moat/kv/ow/_config.yaml +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/moat/kv/ow/_main.py +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/moat/kv/ow/mock.py +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/moat/kv/ow/task.py +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/moat-kv-ow@.service +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/moat_kv_ow.egg-info/SOURCES.txt +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/moat_kv_ow.egg-info/dependency_links.txt +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/moat_kv_ow.egg-info/requires.txt +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/moat_kv_ow.egg-info/top_level.txt +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/pyproject.toml +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/setup.cfg +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/tests/__init__.py +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/tests/conftest.py +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/tests/test_alarm.py +0 -0
- {moat-kv-ow-0.9.3 → moat-kv-ow-0.9.4}/tools/update-0-4.py +0 -0
@@ -60,7 +60,7 @@ class OWFSattr(ClientEntry):
|
|
60
60
|
src_attr = val.get("src_attr", ())
|
61
61
|
if force or src != self.watch_src:
|
62
62
|
if self.watch_src_scope is not None:
|
63
|
-
|
63
|
+
self.watch_src_scope.cancel()
|
64
64
|
self.watch_src = src
|
65
65
|
self.watch_src_attr = src_attr
|
66
66
|
if src is not None:
|
@@ -133,13 +133,13 @@ class OWFSattr(ClientEntry):
|
|
133
133
|
Task that monitors one entry and writes its value to the 1wire
|
134
134
|
device.
|
135
135
|
"""
|
136
|
-
|
136
|
+
with anyio.CancelScope() as sc:
|
137
137
|
try:
|
138
138
|
async with self.client.watch(
|
139
139
|
self.watch_src, min_depth=0, max_depth=0, fetch=True
|
140
140
|
) as wp:
|
141
141
|
if self.watch_src_scope is not None:
|
142
|
-
|
142
|
+
self.watch_src_scope.cancel()
|
143
143
|
self.watch_src_scope = sc
|
144
144
|
task_status.started()
|
145
145
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|