mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Add flake8-logging (LOG) and flake8-logging-format (G) for ruff (#1104)
Enables rules LOG (flake8-logging) and G (flake8-logging-format) for ruff. This will catch eager log message formatting, among other similar issues.
This commit is contained in:
@@ -262,7 +262,7 @@ class _DiscoverProtocol(asyncio.DatagramProtocol):
|
||||
self._handle_discovered_event()
|
||||
return
|
||||
except KasaException as ex:
|
||||
_LOGGER.debug(f"[DISCOVERY] Unable to find device type for {ip}: {ex}")
|
||||
_LOGGER.debug("[DISCOVERY] Unable to find device type for %s: %s", ip, ex)
|
||||
self.invalid_device_exceptions[ip] = ex
|
||||
self._handle_discovered_event()
|
||||
return
|
||||
|
Reference in New Issue
Block a user