mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +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
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user