mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
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 `,`
This commit is contained in:
@@ -371,7 +371,7 @@ class IotDevice(Device):
|
|||||||
est_response_size = 1024 if "system" in req else 0
|
est_response_size = 1024 if "system" in req else 0
|
||||||
for module in self._modules.values():
|
for module in self._modules.values():
|
||||||
if not module.is_supported:
|
if not module.is_supported:
|
||||||
_LOGGER.debug("Module %s not supported, skipping" % module)
|
_LOGGER.debug("Module %s not supported, skipping", module)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
est_response_size += module.estimated_query_response_size
|
est_response_size += module.estimated_query_response_size
|
||||||
|
Reference in New Issue
Block a user