diff --git a/miio/chuangmi_plug.py b/miio/chuangmi_plug.py index 008e80ba1..ddb0ae717 100644 --- a/miio/chuangmi_plug.py +++ b/miio/chuangmi_plug.py @@ -46,7 +46,7 @@ def __init__(self, data: Dict[str, Any]) -> None: def power(self) -> bool: """Current power state.""" if "on" in self.data: - return self.data["on"] + return self.data["on"] is True or self.data["on"] == "on" if "power" in self.data: return self.data["power"] == "on"