Hide "PTZ is not available on this camera" warning (#26649)

* Hide "PTZ is not available" warning

* Change log level to "debug"
pull/26736/head
definitio 2019-09-18 20:00:12 +04:00 committed by Paulus Schoutsen
parent fe5a4cef7f
commit 9cd5c5471d
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ class ONVIFHassCamera(Camera):
"""Set up PTZ if available."""
_LOGGER.debug("Setting up the ONVIF PTZ service")
if self._camera.get_service("ptz", create=False) is None:
_LOGGER.warning("PTZ is not available on this camera")
_LOGGER.debug("PTZ is not available")
else:
self._ptz_service = self._camera.create_ptz_service()
_LOGGER.debug("Completed set up of the ONVIF camera component")