reverting, breaks localtuya
This commit is contained in:
@@ -387,12 +387,6 @@ class LocaltuyaClimate(LocalTuyaEntity, ClimateEntity):
|
||||
if hvac_mode == HVACMode.OFF:
|
||||
await self._device.set_dp(False, self._dp_id)
|
||||
return
|
||||
if self._config[CONF_HVAC_ONOFF_SEPARATE]:
|
||||
if hvac_mode == HVACMode.OFF:
|
||||
await self._device.set_dp(False, self._config[CONF_HVAC_ONOFF_DP])
|
||||
return
|
||||
else:
|
||||
await self._device.set_dp(True, self._config[CONF_HVAC_ONOFF_DP])
|
||||
if not self._state and self._conf_hvac_mode_dp != self._dp_id:
|
||||
await self._device.set_dp(True, self._dp_id)
|
||||
# Some thermostats need a small wait before sending another update
|
||||
|
Reference in New Issue
Block a user