From a812617a7409d7d3974edc59e93a80ccb3e6c6b3 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Mon, 27 Dec 2021 09:04:24 +0100 Subject: [PATCH] Make zhimi.fan.za5 compatible to model autodetection --- miio/fan_miot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/miio/fan_miot.py b/miio/fan_miot.py index 86558edb4..2734949cd 100644 --- a/miio/fan_miot.py +++ b/miio/fan_miot.py @@ -680,8 +680,7 @@ def __init__( lazy_discover: bool = True, model: str = MODEL_FAN_ZA5, ) -> None: - super().__init__(ip, token, start_id, debug, lazy_discover) - self._model = model + super().__init__(ip, token, start_id, debug, lazy_discover, model=model) @command( default_output=format_output(