From 8f2aab87d7e334f94f82684824f44e817528cf12 Mon Sep 17 00:00:00 2001 From: Steven B <51370195+sdb9696@users.noreply.github.com> Date: Fri, 22 Nov 2024 18:21:30 +0000 Subject: [PATCH] Fix typo in deprecated method call --- kasa/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kasa/device.py b/kasa/device.py index 345cd62f..fd28c6f1 100644 --- a/kasa/device.py +++ b/kasa/device.py @@ -612,7 +612,7 @@ class Device(ABC): warn(msg, DeprecationWarning, stacklevel=2) return self.device_type == dep_device_type_attr[1] # callable - if result := self._get_deprecated_callable_attributes(name) is not None: + if (result := self._get_deprecated_callable_attribute(name)) is not None: return result # Other deprecated attributes if (dep_attr := self._deprecated_other_attributes.get(name)) and (