Fix error strings for PTZ operations (#42231)

PTZ error strings for unsupported move operations were copied/pasted
from ContinuousMove. Fix the strings for AbsoluteMove and RelativeMove.
This commit is contained in:
Brett T. Warden
2020-10-25 06:52:32 -07:00
committed by GitHub
parent 221bb5ad52
commit ab5e34a49f

View File

@@ -386,7 +386,7 @@ class ONVIFDevice:
# Guard against unsupported operation
if not profile.ptz.relative:
LOGGER.warning(
"ContinuousMove not supported on device '%s'", self.name
"RelativeMove not supported on device '%s'", self.name
)
return
@@ -403,7 +403,7 @@ class ONVIFDevice:
# Guard against unsupported operation
if not profile.ptz.absolute:
LOGGER.warning(
"ContinuousMove not supported on device '%s'", self.name
"AbsoluteMove not supported on device '%s'", self.name
)
return