Fix typo in deprecated method call

This commit is contained in:
Steven B 2024-11-22 18:21:30 +00:00
parent 8bfddbdd71
commit 8f2aab87d7
No known key found for this signature in database
GPG Key ID: 6D5B46B3679F2A43

View File

@ -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 (