String formatting and max line length - Part 1 (#84390)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
This commit is contained in:
parent
41341c76cf
commit
b0cee0bc46
98 changed files with 532 additions and 237 deletions
|
@ -400,7 +400,10 @@ class AugustData(AugustSubscriberMixin):
|
|||
if self._device_detail_by_id.get(device_id):
|
||||
continue
|
||||
_LOGGER.info(
|
||||
"The doorbell %s could not be setup because the system could not fetch details about the doorbell",
|
||||
(
|
||||
"The doorbell %s could not be setup because the system could not"
|
||||
" fetch details about the doorbell"
|
||||
),
|
||||
doorbell.device_name,
|
||||
)
|
||||
del self._doorbells_by_id[device_id]
|
||||
|
@ -414,12 +417,18 @@ class AugustData(AugustSubscriberMixin):
|
|||
lock_detail = self._device_detail_by_id.get(device_id)
|
||||
if lock_detail is None:
|
||||
_LOGGER.info(
|
||||
"The lock %s could not be setup because the system could not fetch details about the lock",
|
||||
(
|
||||
"The lock %s could not be setup because the system could not"
|
||||
" fetch details about the lock"
|
||||
),
|
||||
lock.device_name,
|
||||
)
|
||||
elif lock_detail.bridge is None:
|
||||
_LOGGER.info(
|
||||
"The lock %s could not be setup because it does not have a bridge (Connect)",
|
||||
(
|
||||
"The lock %s could not be setup because it does not have a"
|
||||
" bridge (Connect)"
|
||||
),
|
||||
lock.device_name,
|
||||
)
|
||||
del self._device_detail_by_id[device_id]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue