Skip to content

Commit 5fcfa32

Browse files
authored
Fix cached document creation (#42)
1 parent f4f4697 commit 5fcfa32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

onvif/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ async def _cached_document(url: str) -> Document:
102102
loop = asyncio.get_event_loop()
103103

104104
def _load_document() -> DocumentWithDeferredLoad:
105-
document = DocumentWithDeferredLoad(url, ASYNC_TRANSPORT, DEFAULT_SETTINGS)
105+
document = DocumentWithDeferredLoad(
106+
url, ASYNC_TRANSPORT, settings=DEFAULT_SETTINGS
107+
)
106108
# Override the default datetime type to use FastDateTime
107109
# This is a workaround for the following issue:
108110
# https://github.com/mvantellingen/python-zeep/pull/1370

0 commit comments

Comments
 (0)