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

32 lines
599 B
Python
Raw Normal View History

2023-02-11 18:37:07 +00:00
"""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",
)