From 8cf1a95bab0304bc1c6ffdc557c119e694b8f2fa Mon Sep 17 00:00:00 2001 From: ultratoto14 <3328573+ultratoto14@users.noreply.github.com> Date: Wed, 31 Mar 2021 19:32:10 +0200 Subject: [PATCH 01/14] Fix error that happens when in custom scene (#291) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * FIx error that happens when in custom scene * Remove unnecessary None * Remove unnecessary None Co-authored-by: Pierre Ståhl --- custom_components/localtuya/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/localtuya/light.py b/custom_components/localtuya/light.py index d0d7c67..49fade8 100644 --- a/custom_components/localtuya/light.py +++ b/custom_components/localtuya/light.py @@ -273,7 +273,7 @@ class LocaltuyaLight(LocalTuyaEntity, LightEntity): def __find_scene_by_scene_data(self, data): return next( - (item for item in self._effect_list if self._scenes[item] == data), + (item for item in self._effect_list if self._scenes.get(item) == data), SCENE_CUSTOM, ) From b896f44ba78b1172378028734cec28fb3c1b7884 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 31 Mar 2021 19:37:26 +0200 Subject: [PATCH 02/14] Bump pydocstyle from 5.1.1 to 6.0.0 (#406) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [pydocstyle](https://github.com/PyCQA/pydocstyle) from 5.1.1 to 6.0.0. - [Release notes](https://github.com/PyCQA/pydocstyle/releases) - [Changelog](https://github.com/PyCQA/pydocstyle/blob/master/docs/release_notes.rst) - [Commits](https://github.com/PyCQA/pydocstyle/compare/5.1.1...6.0.0) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Pierre Ståhl --- requirements_test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index aa65ae9..d068800 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -2,7 +2,7 @@ black==20.8b1 codespell==2.0.0 flake8==3.8.4 mypy==0.812 -pydocstyle==5.1.1 +pydocstyle==6.0.0 cryptography==3.2 pylint==2.7.2 pylint-strict-informational==0.1 From f46e7c3e7e26d9ad86c56324e28ad2623eee2b60 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 31 Mar 2021 19:43:59 +0200 Subject: [PATCH 03/14] Bump flake8 from 3.8.4 to 3.9.0 (#399) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.8.4 to 3.9.0. - [Release notes](https://gitlab.com/pycqa/flake8/tags) - [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.4...3.9.0) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Pierre Ståhl --- requirements_test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index d068800..c9aaa7a 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,6 +1,6 @@ black==20.8b1 codespell==2.0.0 -flake8==3.8.4 +flake8==3.9.0 mypy==0.812 pydocstyle==6.0.0 cryptography==3.2 From 9877db293006e119824c5a241dc4b583f1c6009c Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 31 Mar 2021 20:15:19 +0200 Subject: [PATCH 04/14] Bump pylint from 2.7.2 to 2.7.4 (#427) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [pylint](https://github.com/PyCQA/pylint) from 2.7.2 to 2.7.4. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog) - [Commits](https://github.com/PyCQA/pylint/compare/pylint-2.7.2...pylint-2.7.4) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Pierre Ståhl --- requirements_test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index c9aaa7a..dd68c62 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -4,6 +4,6 @@ flake8==3.9.0 mypy==0.812 pydocstyle==6.0.0 cryptography==3.2 -pylint==2.7.2 +pylint==2.7.4 pylint-strict-informational==0.1 homeassistant==2021.1.4 From 885b08c24745f3ae61aad726bfacb4caba9aacbc Mon Sep 17 00:00:00 2001 From: Shane Donohoe <1909963+shanedabes@users.noreply.github.com> Date: Thu, 1 Apr 2021 11:15:51 +0100 Subject: [PATCH 05/14] Include "big" high fan setting (#413) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Asakuki diffuser has its speed setting under the 103 DPS and uses "big" for its high setting. Co-authored-by: Pierre Ståhl --- custom_components/localtuya/fan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/localtuya/fan.py b/custom_components/localtuya/fan.py index b45567e..834e199 100644 --- a/custom_components/localtuya/fan.py +++ b/custom_components/localtuya/fan.py @@ -38,7 +38,7 @@ def flow_schema(dps): [SPEED_MEDIUM, "mid", "2", "3"] ), vol.Optional(CONF_FAN_SPEED_HIGH, default=SPEED_HIGH): vol.In( - [SPEED_HIGH, "auto", "3", "4", "large"] + [SPEED_HIGH, "auto", "3", "4", "large", "big"] ), } From 934a0f47a2779300e7d3834678d3ac2b479738a8 Mon Sep 17 00:00:00 2001 From: ultratoto14 <3328573+ultratoto14@users.noreply.github.com> Date: Thu, 1 Apr 2021 18:43:08 +0200 Subject: [PATCH 06/14] FIrst try to add issue template (#264) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Try to issue template * Adding default bug label. Co-authored-by: Pierre Ståhl --- .github/ISSUE_TEMPLATE/bug_report.md | 68 ++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..ef8a23c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,68 @@ +--- +name: Bug report +about: Create a report to help us improve localtuya +title: '' +labels: 'bug' +assignees: '' + +--- + +## The problem + + + +## Environment + +- Localtuya version: +- Last working localtuya version (if known and relevant): +- Home Assistant Core version: +- [] Are you using the Home Assistant Tuya Cloud component ? +- [] Are you using the Tuya App in parallel ? + +## Steps to reproduce + +1. +2. +3. + +## Configuration `configuration.yaml` or `config_flow` + +```yaml + +``` + +## DP dump + + +## Provide Home Assistant taceback/logs + +```txt + +``` +## Additional information + From a75b99924fcf33dcfdb6f23abe99dc40e650a26b Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sun, 25 Apr 2021 23:24:47 +0000 Subject: [PATCH 07/14] Bump black from 20.8b1 to 21.4b0 Bumps [black](https://github.com/psf/black) from 20.8b1 to 21.4b0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/master/CHANGES.md) - [Commits](https://github.com/psf/black/commits) Signed-off-by: dependabot-preview[bot] --- requirements_test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index dd68c62..be70724 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,4 +1,4 @@ -black==20.8b1 +black==21.4b0 codespell==2.0.0 flake8==3.9.0 mypy==0.812 From c3ce9b5f0b32dcf2b75319291698f69f914b53fa Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 26 Apr 2021 07:53:12 +0000 Subject: [PATCH 08/14] Bump flake8 from 3.9.0 to 3.9.1 Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.9.0 to 3.9.1. - [Release notes](https://gitlab.com/pycqa/flake8/tags) - [Commits](https://gitlab.com/pycqa/flake8/compare/3.9.0...3.9.1) Signed-off-by: dependabot-preview[bot] --- requirements_test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index be70724..390cda3 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,6 +1,6 @@ black==21.4b0 codespell==2.0.0 -flake8==3.9.0 +flake8==3.9.1 mypy==0.812 pydocstyle==6.0.0 cryptography==3.2 From 8a056977951b82ec8069d0e232e240eb31890441 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 26 Apr 2021 07:53:13 +0000 Subject: [PATCH 09/14] Bump pylint from 2.7.4 to 2.8.1 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.7.4 to 2.8.1. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog) - [Commits](https://github.com/PyCQA/pylint/compare/pylint-2.7.4...pylint-2.8.1) Signed-off-by: dependabot-preview[bot] --- requirements_test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index 390cda3..d42c550 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -4,6 +4,6 @@ flake8==3.9.1 mypy==0.812 pydocstyle==6.0.0 cryptography==3.2 -pylint==2.7.4 +pylint==2.8.1 pylint-strict-informational==0.1 homeassistant==2021.1.4 From b4e794adf73022fc374faaaf45e1bc107664dc69 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 27 Apr 2021 21:24:57 +0000 Subject: [PATCH 10/14] Bump pylint from 2.8.1 to 2.8.2 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.8.1 to 2.8.2. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog) - [Commits](https://github.com/PyCQA/pylint/compare/pylint-2.8.1...v2.8.2) Signed-off-by: dependabot-preview[bot] --- requirements_test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index d42c550..d2dc0fe 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -4,6 +4,6 @@ flake8==3.9.1 mypy==0.812 pydocstyle==6.0.0 cryptography==3.2 -pylint==2.8.1 +pylint==2.8.2 pylint-strict-informational==0.1 homeassistant==2021.1.4 From 20a47da824c02a68edef31cdbbbe3dc73b86f439 Mon Sep 17 00:00:00 2001 From: rospogrigio <49229287+rospogrigio@users.noreply.github.com> Date: Wed, 9 Jun 2021 09:36:28 +0200 Subject: [PATCH 11/14] Added iot_class to manifest.json --- custom_components/localtuya/manifest.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/localtuya/manifest.json b/custom_components/localtuya/manifest.json index 094b987..7f19f9f 100644 --- a/custom_components/localtuya/manifest.json +++ b/custom_components/localtuya/manifest.json @@ -9,5 +9,6 @@ ], "issue_tracker": "https://github.com/rospogrigio/localtuya/issues", "requirements": [], - "config_flow": true + "config_flow": true, + "iot_class": "local_push" } From 671fd0f9d25384b4ecd52375a227541d9b5a790e Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 8 Jun 2021 22:41:18 +0000 Subject: [PATCH 12/14] Bump mypy from 0.812 to 0.901 Bumps [mypy](https://github.com/python/mypy) from 0.812 to 0.901. - [Release notes](https://github.com/python/mypy/releases) - [Commits](https://github.com/python/mypy/compare/v0.812...v0.901) Signed-off-by: dependabot-preview[bot] --- requirements_test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index d2dc0fe..e61ef02 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,7 +1,7 @@ black==21.4b0 codespell==2.0.0 flake8==3.9.1 -mypy==0.812 +mypy==0.901 pydocstyle==6.0.0 cryptography==3.2 pylint==2.8.2 From 12a89c750c938cd62e42819b02724aa35ea4a1b5 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 9 Jun 2021 07:58:52 +0000 Subject: [PATCH 13/14] Bump pydocstyle from 6.0.0 to 6.1.1 Bumps [pydocstyle](https://github.com/PyCQA/pydocstyle) from 6.0.0 to 6.1.1. - [Release notes](https://github.com/PyCQA/pydocstyle/releases) - [Changelog](https://github.com/PyCQA/pydocstyle/blob/master/docs/release_notes.rst) - [Commits](https://github.com/PyCQA/pydocstyle/compare/6.0.0...6.1.1) Signed-off-by: dependabot-preview[bot] --- requirements_test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index e61ef02..bd56c53 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -2,7 +2,7 @@ black==21.4b0 codespell==2.0.0 flake8==3.9.1 mypy==0.901 -pydocstyle==6.0.0 +pydocstyle==6.1.1 cryptography==3.2 pylint==2.8.2 pylint-strict-informational==0.1 From 363d76372c074a35e97fc66be289ba8c807092df Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 9 Jun 2021 08:06:47 +0000 Subject: [PATCH 14/14] Bump flake8 from 3.9.1 to 3.9.2 Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.9.1 to 3.9.2. - [Release notes](https://gitlab.com/pycqa/flake8/tags) - [Commits](https://gitlab.com/pycqa/flake8/commits/master) Signed-off-by: dependabot-preview[bot] --- requirements_test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index bd56c53..df62e77 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,6 +1,6 @@ black==21.4b0 codespell==2.0.0 -flake8==3.9.1 +flake8==3.9.2 mypy==0.901 pydocstyle==6.1.1 cryptography==3.2