From ab5e34a49f7a6e2dd4f73f0f2c25050f68468e01 Mon Sep 17 00:00:00 2001 From: "Brett T. Warden" Date: Sun, 25 Oct 2020 06:52:32 -0700 Subject: [PATCH] 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. --- homeassistant/components/onvif/device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/onvif/device.py b/homeassistant/components/onvif/device.py index 8ede2ab24cd..599e6084581 100644 --- a/homeassistant/components/onvif/device.py +++ b/homeassistant/components/onvif/device.py @@ -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