Skip to content

Commit

Permalink
Merge pull request #12 from EnzoD86/2024.8.3
Browse files Browse the repository at this point in the history
2024.8.3
  • Loading branch information
EnzoD86 authored Aug 21, 2024
2 parents 02b5edc + 91a152f commit 9c6dfef
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 618 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ tuya_smart_ir_ac:
country: "EU"
```
Then you can add the "Tuya Smart IR Air Conditioners" integration from the web interface to configure your air conditioners. You need to retrieve your Climate ID and Infrared ID on the Tuya IoT website.
## Third-party libraries
The integration uses a modified version of the [Tuya connector python library](https://github.com/tuya/tuya-connector-python) to resolve some issues related to token renewal.
Then you can add the "Tuya Smart IR Air Conditioners" integration from the web interface to configure your air conditioners.
You need to retrieve your Climate ID (Device ID of your air conditioning) and Infrared ID (Device ID of your IR HUB) on the Tuya IoT website.
## Contributions are welcome!
Expand Down
2 changes: 1 addition & 1 deletion custom_components/tuya_smart_ir_ac/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import voluptuous as vol
import logging
import homeassistant.helpers.config_validation as cv
from .tuya_connector import TuyaOpenAPI
from tuya_connector import TuyaOpenAPI
from .const import (
DOMAIN,
PLATFORMS,
Expand Down
4 changes: 2 additions & 2 deletions custom_components/tuya_smart_ir_ac/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ async def async_turn_off(self, infrared_id, climate_id):
async def async_set_temperature(self, infrared_id, climate_id, temperature):
try:
await self._api.async_send_command(infrared_id, climate_id, "temp", tuya_temp(temperature))
await self._async_force_update_data(climate_id, temperature=temperature)
await self._async_force_update_data(climate_id, power=True, temperature=temperature)
except Exception:
raise ServiceValidationError(translation_domain=DOMAIN, translation_key="climate_error_temperature")

async def async_set_fan_mode(self, infrared_id, climate_id, fan_mode):
try:
await self._api.async_send_command(infrared_id, climate_id, "wind", tuya_wind(fan_mode))
await self._async_force_update_data(climate_id, fan_mode=fan_mode)
await self._async_force_update_data(climate_id, power=True, fan_mode=fan_mode)
except Exception:
raise ServiceValidationError(translation_domain=DOMAIN, translation_key="climate_error_fan_mode")

Expand Down
2 changes: 1 addition & 1 deletion custom_components/tuya_smart_ir_ac/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/EnzoD86/tuya-smart-ir-ac/issues",
"requirements": ["tuya-connector-python==0.1.2"],
"version": "2024.8.2"
"version": "2024.8.3"
}
20 changes: 0 additions & 20 deletions custom_components/tuya_smart_ir_ac/tuya_connector/LICENSE

This file was deleted.

16 changes: 0 additions & 16 deletions custom_components/tuya_smart_ir_ac/tuya_connector/__init__.py

This file was deleted.

306 changes: 0 additions & 306 deletions custom_components/tuya_smart_ir_ac/tuya_connector/openapi.py

This file was deleted.

Loading

0 comments on commit 9c6dfef

Please sign in to comment.