mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-07 07:54:31 +02:00
changed string formatting according to development guidelines
This commit is contained in:
parent
7af3ef0bb3
commit
8ec4f9ade5
7 changed files with 31 additions and 39 deletions
|
@ -256,7 +256,7 @@ class MikrotikAPI:
|
|||
|
||||
self.lock.release()
|
||||
if not entry_found:
|
||||
error = 'Parameter "{}" with value "{}" not found'.format(param, value)
|
||||
error = f'Parameter "{param}" with value "{value}" not found'
|
||||
raise ApiEntryNotFound(error)
|
||||
|
||||
return True
|
||||
|
@ -321,7 +321,7 @@ class MikrotikAPI:
|
|||
|
||||
self.lock.release()
|
||||
if not entry_found:
|
||||
error = 'Script "{}" not found'.format(name)
|
||||
error = f'Script "{name}" not found'
|
||||
raise ApiEntryNotFound(error)
|
||||
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue