String formatting and max line length - Part 3 (#84394)

This commit is contained in:
Franck Nijhof 2022-12-22 13:35:47 +01:00 committed by GitHub
parent 30df9e7706
commit baef267f33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
88 changed files with 517 additions and 218 deletions

View file

@ -126,8 +126,10 @@ class EventManager:
await self._subscription.Unsubscribe()
except (XMLParseError, *SUBSCRIPTION_ERRORS) as err:
LOGGER.debug(
"Failed to unsubscribe ONVIF PullPoint subscription for '%s';"
" This is normal if the device restarted: %s",
(
"Failed to unsubscribe ONVIF PullPoint subscription for '%s';"
" This is normal if the device restarted: %s"
),
self.unique_id,
err,
)
@ -141,8 +143,10 @@ class EventManager:
# when we get an XMLParseError
LOGGER.log(
DEBUG if isinstance(err, XMLParseError) else WARNING,
"Failed to restart ONVIF PullPoint subscription for '%s'; "
"Retrying later: %s",
(
"Failed to restart ONVIF PullPoint subscription for '%s'; "
"Retrying later: %s"
),
self.unique_id,
err,
)
@ -194,7 +198,10 @@ class EventManager:
# when we get an XMLParseError
LOGGER.log(
DEBUG if isinstance(err, XMLParseError) else WARNING,
"Failed to fetch ONVIF PullPoint subscription messages for '%s': %s",
(
"Failed to fetch ONVIF PullPoint subscription messages for"
" '%s': %s"
),
self.unique_id,
err,
)