From 52c62c5596db48f91600c5aa93dba52e28206d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20St=C3=A5hl?= Date: Sun, 22 Nov 2020 07:21:41 +0100 Subject: [PATCH] Fix typo of dp_id in fan platform (#178) --- custom_components/localtuya/fan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/localtuya/fan.py b/custom_components/localtuya/fan.py index 3033cfc..8e5b9d9 100644 --- a/custom_components/localtuya/fan.py +++ b/custom_components/localtuya/fan.py @@ -136,7 +136,7 @@ class LocaltuyaFan(LocalTuyaEntity, FanEntity): self._config.get(CONF_FAN_SPEED_HIGH): SPEED_HIGH, } - self._is_on = self.dps(self._dps_id) + self._is_on = self.dps(self._dp_id) if self.has_config(CONF_FAN_SPEED_CONTROL): self._speed = mappings.get(self.dps_conf(CONF_FAN_SPEED_CONTROL))