diff --git a/miio/airfresh_t2017.py b/miio/airfresh_t2017.py index 7548eee46..252c353c1 100644 --- a/miio/airfresh_t2017.py +++ b/miio/airfresh_t2017.py @@ -319,7 +319,7 @@ def set_display_orientation(self, orientation: DisplayOrientation): @command( click.argument("ptc", type=bool), default_output=format_output( - lambda led: "Turning on ptc" if led else "Turning off ptc" + lambda ptc: "Turning on ptc" if ptc else "Turning off ptc" ), ) def set_ptc(self, ptc: bool):