diff --git a/miio/devicestatus.py b/miio/devicestatus.py index 4f8118ef8..18bf37f08 100644 --- a/miio/devicestatus.py +++ b/miio/devicestatus.py @@ -201,7 +201,11 @@ def decorator_setting(func): qualified_name = str(func.__qualname__) if setter is None and setter_name is None: - raise Exception("Either setter or setter_name needs to be defined") + raise Exception("setter_name needs to be defined") + if setter_name is None: + raise NotImplementedError( + "setter not yet implemented, use setter_name instead" + ) common_values = { "id": qualified_name,