Commit Graph

715 Commits

Author SHA1 Message Date
ultratoto14
8cf1a95bab Fix error that happens when in custom scene (#291)
* FIx  error that happens when in custom scene

* Remove unnecessary None

* Remove unnecessary None

Co-authored-by: Pierre Ståhl <pierre.staahl@gmail.com>
2021-03-31 19:32:10 +02:00
dependabot-preview[bot]
93b6ad663d Bump mypy from 0.800 to 0.812 (#363)
Bumps [mypy](https://github.com/python/mypy) from 0.800 to 0.812.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.800...v0.812)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Pierre Ståhl <pierre.staahl@gmail.com>
2021-03-08 11:10:45 +01:00
dependabot-preview[bot]
57fe963bd0 Bump pylint from 2.6.0 to 2.7.2 (#373)
Bumps [pylint](https://github.com/PyCQA/pylint) from 2.6.0 to 2.7.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.6.0...pylint-2.7.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Pierre Ståhl <pierre.staahl@gmail.com>
2021-03-08 10:52:13 +01:00
Pierre Ståhl
66fdc164a3 Make connection retries every minute (#288)
* Make connection retries every minute

This mimics the re-connect loop previosuly present, but in a simpler
form. Every 60 seconds, a new connection attempt is made as well as
initially when a device is set up.

* Fix device look up in reconnect loop
2021-03-05 23:16:27 +01:00
rospogrigio
9a240bcc97 Swtiching to version 3.2.1 in manifest.json 2021-03-04 11:20:20 +01:00
rospogrigio
09f6de874b Updated manigest.json adding "version" field 2021-03-04 11:19:45 +01:00
dependabot-preview[bot]
1a5fd2f108 Bump mypy from 0.790 to 0.800
Bumps [mypy](https://github.com/python/mypy) from 0.790 to 0.800.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.790...v0.800)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-22 13:11:18 +01:00
dependabot-preview[bot]
496fb1a39c Bump homeassistant from 2021.1.3 to 2021.1.4
Bumps [homeassistant](https://github.com/home-assistant/core) from 2021.1.3 to 2021.1.4.
- [Release notes](https://github.com/home-assistant/core/releases)
- [Changelog](https://github.com/home-assistant/core/blob/dev/azure-pipelines-release.yml)
- [Commits](https://github.com/home-assistant/core/compare/2021.1.3...2021.1.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-18 15:06:18 +01:00
dependabot-preview[bot]
8483cb64d2 Bump homeassistant from 2021.1.1 to 2021.1.3
Bumps [homeassistant](https://github.com/home-assistant/core) from 2021.1.1 to 2021.1.3.
- [Release notes](https://github.com/home-assistant/core/releases)
- [Changelog](https://github.com/home-assistant/core/blob/dev/azure-pipelines-release.yml)
- [Commits](https://github.com/home-assistant/core/compare/2021.1.1...2021.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-15 13:54:18 +00:00
dependabot-preview[bot]
e030c38e41 Bump homeassistant from 2021.1.0 to 2021.1.1
Bumps [homeassistant](https://github.com/home-assistant/core) from 2021.1.0 to 2021.1.1.
- [Release notes](https://github.com/home-assistant/core/releases)
- [Changelog](https://github.com/home-assistant/core/blob/dev/azure-pipelines-release.yml)
- [Commits](https://github.com/home-assistant/core/compare/2021.1.0...2021.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-09 17:30:02 +01:00
rospogrigio
5637060a87 Fixed close button disabled with 'none' positioning mode 2021-01-07 09:46:01 +01:00
dependabot-preview[bot]
29622f3182 Bump homeassistant from 2020.12.2 to 2021.1.0
Bumps [homeassistant](https://github.com/home-assistant/core) from 2020.12.2 to 2021.1.0.
- [Release notes](https://github.com/home-assistant/core/releases)
- [Changelog](https://github.com/home-assistant/core/blob/dev/azure-pipelines-release.yml)
- [Commits](https://github.com/home-assistant/core/compare/2020.12.2...2021.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-07 01:38:01 +00:00
ultratoto14
4b361c4a7e Merge pull request #290 from itairaz1/allow-small-large-values-for-fan
allow set small / large values for low and high speed for fans
2021-01-02 14:17:39 +01:00
Itai Raz
397e99fec1 allow set small / large values for low and high speed for fans 2021-01-01 19:34:29 +02:00
rospogrigio
9bfeb107f5 Cover fake position persistent (#213)
* Introduced read/store to JSON file of cover's last position for fake positioning
* renamed "fake" positioning to "timed"; introduced timed movement timeout equal to full opening time
* Made waiting for timeout for stopping non-blocking
* Introduced status storing using RestoreEntity
* Fixed postlund's remarks
* Updated cover samples in README and info.md
2020-12-30 22:47:45 +01:00
dependabot-preview[bot]
94d1c93510 Bump homeassistant from 2020.12.1 to 2020.12.2
Bumps [homeassistant](https://github.com/home-assistant/core) from 2020.12.1 to 2020.12.2.
- [Release notes](https://github.com/home-assistant/core/releases)
- [Changelog](https://github.com/home-assistant/core/blob/dev/azure-pipelines-release.yml)
- [Commits](https://github.com/home-assistant/core/compare/2020.12.1...2020.12.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-30 14:06:45 +01:00
ultratoto14
d8de7e36b1 Merge pull request #255 from rospogrigio/timeout_log
Use debug message for timeout.
2020-12-17 22:00:52 +01:00
ultratoto14
0518f58919 Merge branch 'master' into timeout_log 2020-12-17 21:57:21 +01:00
ultratoto14
6cc178fb72 Merge pull request #256 from rospogrigio/scene_fix_2
Fix one more HA scene problem
2020-12-17 21:56:19 +01:00
ultratoto14
fd404cb39b Merge branch 'master' into timeout_log 2020-12-17 21:46:59 +01:00
ultratoto14
444ec78e2b Fix review comment. 2020-12-17 21:46:26 +01:00
ultratoto14
acf3e6eccd Merge branch 'master' into scene_fix_2 2020-12-17 21:45:26 +01:00
Pierre Ståhl
654c6cdc62 Support adding and removing entities to devices (#191)
New entities can be added via + button under Integrations (like when
adding a new device) and entities can be removed from Options.
2020-12-17 21:36:24 +01:00
dependabot-preview[bot]
6869a0ac5d Bump mypy from 0.782 to 0.790 (#245)
Bumps [mypy](https://github.com/python/mypy) from 0.782 to 0.790.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.782...v0.790)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Pierre Ståhl <pierre.staahl@gmail.com>
2020-12-17 19:38:21 +01:00
ultratoto14
41a1e7839f Merge branch 'master' into scene_fix_2 2020-12-17 16:24:37 +01:00
dependabot-preview[bot]
8e1e349fa4 Fix HA scene, one more. 2020-12-17 16:20:22 +01:00
ultratoto14
3a4940387c Use debug message for timeout. 2020-12-17 15:01:02 +01:00
dependabot-preview[bot]
be29474050 Bump flake8 from 3.8.3 to 3.8.4
Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.8.3 to 3.8.4.
- [Release notes](https://gitlab.com/pycqa/flake8/tags)
- [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.3...3.8.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-17 13:18:39 +00:00
dependabot-preview[bot]
f5add5ae98 Bump codespell from 1.17.1 to 2.0.0
Bumps [codespell](https://github.com/codespell-project/codespell) from 1.17.1 to 2.0.0.
- [Release notes](https://github.com/codespell-project/codespell/releases)
- [Commits](https://github.com/codespell-project/codespell/compare/v1.17.1...v2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-17 13:14:14 +00:00
dependabot-preview[bot]
ad0f80f122 Bump homeassistant from 2020.12.0 to 2020.12.1 (#244)
Bumps [homeassistant](https://github.com/home-assistant/core) from 2020.12.0 to 2020.12.1.
- [Release notes](https://github.com/home-assistant/core/releases)
- [Changelog](https://github.com/home-assistant/core/blob/dev/azure-pipelines-release.yml)
- [Commits](https://github.com/home-assistant/core/compare/2020.12.0...2020.12.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Pierre Ståhl <pierre.staahl@gmail.com>
2020-12-17 14:09:21 +01:00
Pierre Ståhl
acd70b655c Fix name issue from pylint changes (#252) 2020-12-17 14:03:40 +01:00
Pierre Ståhl
52bf9cc814 Add dependabot config (#249) 2020-12-17 10:52:34 +01:00
Pierre Ståhl
f72cbc0b5a Run pylint from tox (#243) 2020-12-17 09:26:55 +01:00
ultratoto14
3cf15f216e Merge pull request #240 from maartenweyns/master
Fix light state change when already on
2020-12-15 22:55:21 +01:00
Maarten Weyns
a6e8f282c5 Fixed editor line indentation 2020-12-15 20:11:34 +01:00
Maarten Weyns
c28fac7010 This makes lights smoothly fade from one state to a new state, without the intermediate "turn off" 2020-12-15 20:09:10 +01:00
ultratoto14
2d2a6216d3 Merge pull request #238 from rospogrigio/light_fixes
Manage white and color scenes for light without color_temp
2020-12-15 19:31:38 +01:00
ultratoto14
3737dec4c2 Merge branch 'master' into light_fixes 2020-12-15 19:27:18 +01:00
ultratoto14
d2a307fa6c Merge pull request #239 from rospogrigio/tighter_heartbeat
Reduce heartbeat interval.
2020-12-15 19:26:54 +01:00
ultratoto14
89dabfc105 Reduce heartbeat interval. 2020-12-15 17:12:52 +01:00
ultratoto14
d0653d4f36 Fix HA scenes with bulb without color_temp 2020-12-15 15:13:08 +01:00
Pierre Ståhl
aeb27a4d75 Fix improper closing in config flow (#237)
Forgot to add an await to the close method in pytuya when validating the
device. This results in the connection never being closed after adding a
device, giving "connection resets" until the connection fails, the
device or Home Assistant is restarted.
2020-12-15 10:56:45 +01:00
Pierre Ståhl
e7d58be91c Add localtuya.set_dp service (#236) 2020-12-15 09:36:34 +01:00
Pierre Ståhl
10e55e67b4 Add support for passive devices (#171)
* Add support for passive devices

* Fix a few issues

* Fix broken handling of closing a connection

This fixes the following error:

  AttributeError: 'NoneType' object has no attribute 'write'

* Always use discovery broadcasts to trigger connects

From now on there's no connect loop but all attempts are initiated by
received discovery messages.

* Fix cancelling of heartbeat task

* Verify entry has been loaded before connecting

* Don't reset seqno when switching to type_d device
2020-12-15 09:08:46 +01:00
cjj25
1d58abd0f2 Update README.md
Co-authored-by: Kendell R <KTibow@users.noreply.github.com>
2020-12-14 14:29:53 +01:00
cjj25
3b7e8064a9 Update README.md
Note added to README regarding unresponsive devices on an internet connected network, correct method of blocking.
2020-12-14 14:29:53 +01:00
Pierre Ståhl
b50ee8bb94 Properly close discovery listeners (#225)
Fixes #214
2020-12-07 22:20:21 +01:00
rospogrigio
a74af936a4 Fix for issue #186 (wrong initialization values for _timer_start and _previous_state) 2020-11-24 22:50:47 +01:00
ultratoto14
095f64954d Merge pull request #182 from rospogrigio/white_point
Use color picker white point to switch to white mode.
2020-11-23 20:50:13 +01:00
ultratoto14
3ecae049bb overzealous check. 2020-11-23 20:30:45 +01:00