diff --git a/miio/device.py b/miio/device.py index fc199353a..3793c65bb 100644 --- a/miio/device.py +++ b/miio/device.py @@ -37,7 +37,7 @@ def __repr__(self): name, prop = prop_tuple try: # ignore deprecation warnings - with warnings.catch_warnings(): + with warnings.catch_warnings(record=True): prop_value = prop.fget(self) except Exception as ex: prop_value = ex.__class__.__name__