mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
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:
parent
221bb5ad52
commit
ab5e34a49f
@ -386,7 +386,7 @@ class ONVIFDevice:
|
|||||||
# Guard against unsupported operation
|
# Guard against unsupported operation
|
||||||
if not profile.ptz.relative:
|
if not profile.ptz.relative:
|
||||||
LOGGER.warning(
|
LOGGER.warning(
|
||||||
"ContinuousMove not supported on device '%s'", self.name
|
"RelativeMove not supported on device '%s'", self.name
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -403,7 +403,7 @@ class ONVIFDevice:
|
|||||||
# Guard against unsupported operation
|
# Guard against unsupported operation
|
||||||
if not profile.ptz.absolute:
|
if not profile.ptz.absolute:
|
||||||
LOGGER.warning(
|
LOGGER.warning(
|
||||||
"ContinuousMove not supported on device '%s'", self.name
|
"AbsoluteMove not supported on device '%s'", self.name
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user