Skip to content

Commit

Permalink
Fix typo of dp_id in fan platform (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
postlund committed Nov 22, 2020
1 parent 5668595 commit 52c62c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/localtuya/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def status_updated(self):
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))
Expand Down

0 comments on commit 52c62c5

Please sign in to comment.