This repository has been archived on 2023-06-10. You can view files and clone it, but cannot push or open issues or pull requests.
homeassistant-config/deps/lib/python3.10/site-packages/onvif/__init__.py
darthsandmann d1289421b9 updates
2023-02-11 19:37:07 +01:00

32 lines
599 B
Python

"""Initialize onvif."""
import zeep
from onvif.client import SERVICES, ONVIFCamera, ONVIFService
from onvif.exceptions import (
ERR_ONVIF_BUILD,
ERR_ONVIF_PROTOCOL,
ERR_ONVIF_UNKNOWN,
ERR_ONVIF_WSDL,
ONVIFError,
)
def zeep_pythonvalue(self, xmlvalue):
"""Monkey patch zeep."""
return xmlvalue
# pylint: disable=no-member
zeep.xsd.simple.AnySimpleType.pythonvalue = zeep_pythonvalue
__all__ = (
"ONVIFService",
"ONVIFCamera",
"ONVIFError",
"ERR_ONVIF_UNKNOWN",
"ERR_ONVIF_PROTOCOL",
"ERR_ONVIF_WSDL",
"ERR_ONVIF_BUILD",
"SERVICES",
)