From 4abad00e09fda41699fb0ea6681f00b7b8e4e8ca Mon Sep 17 00:00:00 2001 From: petretiandrea Date: Fri, 11 Aug 2023 18:15:57 +0200 Subject: [PATCH] add support tl31 and tl33 (#471) --- custom_components/tapo/const.py | 2 ++ custom_components/tapo/manifest.json | 2 +- custom_components/tapo/setup_helpers.py | 1 - requirements_dev.txt | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/custom_components/tapo/const.py b/custom_components/tapo/const.py index 7b511fe..449cb84 100755 --- a/custom_components/tapo/const.py +++ b/custom_components/tapo/const.py @@ -20,6 +20,8 @@ "l520": [ColorMode.ONOFF, ColorMode.BRIGHTNESS], "l510": [ColorMode.ONOFF, ColorMode.BRIGHTNESS], "l610": [ColorMode.ONOFF, ColorMode.BRIGHTNESS], + "tl33": [ColorMode.ONOFF, ColorMode.BRIGHTNESS, ColorMode.COLOR_TEMP, ColorMode.HS], + "tl31": [ColorMode.ONOFF, ColorMode.BRIGHTNESS, ColorMode.COLOR_TEMP], } SUPPORTED_DEVICE_AS_LED_STRIP = ["l930", "l920", "l900"] diff --git a/custom_components/tapo/manifest.json b/custom_components/tapo/manifest.json index e429900..98dee1f 100755 --- a/custom_components/tapo/manifest.json +++ b/custom_components/tapo/manifest.json @@ -7,7 +7,7 @@ "documentation": "https://github.com/petretiandrea/home-assistant-tapo-p100", "issue_tracker": "https://github.com/petretiandrea/home-assistant-tapo-p100/issues", "requirements": [ - "plugp100==3.5.0" + "plugp100==3.6.0" ], "dependencies": [], "integration_type": "hub", diff --git a/custom_components/tapo/setup_helpers.py b/custom_components/tapo/setup_helpers.py index d7ca7e4..89dbc42 100644 --- a/custom_components/tapo/setup_helpers.py +++ b/custom_components/tapo/setup_helpers.py @@ -61,7 +61,6 @@ async def setup_from_platform_config( polling_rate, ) - def _get_or_create_api_client( hass: HomeAssistant, username: str, password: str, unique_id: str ) -> TapoClient: diff --git a/requirements_dev.txt b/requirements_dev.txt index 3cfe642..a27a437 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,2 +1,2 @@ homeassistant==2022.12.8 -plugp100==3.5.0 \ No newline at end of file +plugp100==3.6.0 \ No newline at end of file