8000 Fix logging in iotdevice when a module is module not supported (#1100) · python-kasa/python-kasa@b6339be · GitHub
[go: up one dir, main page]

Skip to content

Commit b6339be

Browse files
authored
Fix logging in iotdevice when a module is module not supported (#1100)
Debug logger was generating the `repr()` of each module and throwing it away because it had a `%` instead of a `,`
1 parent beb7ca2 commit b6339be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kasa/iot/iotdevice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ async def _modular_update(self, req: dict) -> None:
371371
est_response_size = 1024 if "system" in req else 0
372372
for module in self._modules.values():
373373
if not module.is_supported:
374-
_LOGGER.debug("Module %s not supported, skipping" % module)
374+
_LOGGER.debug("Module %s not supported, skipping", module)
375375
continue
376376

377377
est_response_size += module.estimated_query_response_size

0 commit comments

Comments
 (0)
0