Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
EnzoD86 committed Jul 25, 2024
1 parent 8acf810 commit 0224695
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion custom_components/tuya_smart_ir_ac/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@

async def async_setup(hass, config):
if DOMAIN not in config:
_LOGGER.error("Cannot find tuya_smart_ir platform on configuration.yaml")
_LOGGER.error(f"Cannot find {DOMAIN} platform on configuration.yaml")
return False

cfg = config.get(DOMAIN)
tuya_country = cfg.get(CONF_TUYA_COUNTRY)

api_endpoint = TUYA_ENDPOINTS.get(tuya_country)
access_id = cfg.get(CONF_ACCESS_ID)
access_secret = cfg.get(CONF_ACCESS_SECRET)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/tuya_smart_ir_ac/api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging

_LOGGER = logging.getLogger(__name__)
_LOGGER = logging.getLogger(__package__)


class TuyaAPI:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/tuya_smart_ir_ac/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,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.1"
}
"version": "2024.8.0"
}

0 comments on commit 0224695

Please sign in to comment.