Commit Graph

74 Commits

Author SHA1 Message Date
Pierre Ståhl
a18c69f8eb Fix pydocstyle issues and enable in tox 2020-09-23 16:47:08 +02:00
Pierre Ståhl
30392d3ac5 Initial step to have continuous integration
This commit introduces the use of tox, which currently only verifies
that code is formatted according to the black project. More checks will
come in upcoming PRs for codespell, pydocstyle, flake8 and mypy.

A GitHub actions is included that runs tox on new pull requests, so we
get automatic feedback and can block commits that fail any check.
Another (official) action that runs hassfest is included as well, to
make sure we are compatible with Home Assistant.
2020-09-22 12:29:05 +02:00
rospogrigio
83b3b6f21b Moved TuyaCache to __init__.py, and renamed to TuyaDevice. In pytuya, renamed TuyaDevice to TuyaInterface 2020-09-22 00:51:33 +02:00
rospogrigio
c266e0f904 add_request_dps moved into prepare_setup_entities, plus code cleaning 2020-09-19 15:59:59 +02:00
rospogrigio
6700e02c52 set_dpsUsed turned into add_dps_to_request ; used it when setting up entities 2020-09-19 15:59:59 +02:00
rospogrigio
16cb29297b Introduced dps detection with bruteforcing for type_0d devices 2020-09-16 19:36:51 +02:00
rospogrigio
c99cc1f077 Removed unneeded friendly_name fields 2020-09-15 23:31:33 +02:00
rospogrigio
22ccd51926 Fixed TuyaDevice init calls 2020-09-15 09:24:53 +02:00
rospogrigio
6c68cdcbcc Merge branch 'pytuya_refactoring' into physical_device 2020-09-15 00:15:46 +02:00
rospogrigio
47b92b0178 Fixes suggested in PR #11 2020-09-13 14:03:08 +02:00
rospogrigio
c008339f43 First working implementation of Devices 2020-09-11 14:48:49 +02:00
rospogrigio
184199ef87 Pytuya library refactoring and code cleaning 2020-09-11 11:46:01 +02:00
rospogrigio
8e9fb82304 Introduced type_0a and type_0d devices autodetection 2020-09-10 10:59:58 +02:00
rospogrigio
63d1ef26d4 Cleaned up pytuya code 2020-09-07 14:46:35 +02:00
rospogrigio
2f50050f8a Merge branch 'master' of https://github.com/fancygaphtrn/localtuya-homeassistant into fancygaphtrn-master 2020-09-04 22:36:16 +02:00
fancygaphtrn
8ae6a71797 Updated to be inline with upstream 7.0.9 2020-09-04 10:01:07 -04:00
rospogrigio
16d8d4dcf9 Introduced pytuya 7.0.9: Unified dev_type (device20 or device22) handling for all devices 2020-09-03 21:51:27 +02:00
rospogrigio
98508a347a v.1.0.1: sending only dps actually used in request payload 2020-08-06 11:32:33 +02:00
fancygaphtrn
87a0ac2363 Fan support 2020-06-30 07:23:14 -04:00
rospogrigio
db03bd3a8d Updated for HA 110.0 (CoverEntity and SwitchEntity instead of CoverDevice and SwitchDevice) 2020-05-21 07:55:35 +02:00
rospogrigio
071cdef230 Fixed and improved logging 2020-04-20 14:17:29 +02:00
rospogrigio
6e82ab0632 Introduced different support for switches with 20 and 22 bytes length for dev_id. Introduced name to set the entity_id and friendly_name for the frontend name. 2020-04-07 17:27:50 +02:00
rospogrigio
30c466015c Introduced cover support 2020-03-23 10:53:41 +01:00
mileperhour
e0b153b5af Add files via upload
Fixed: no module named 'pytuya'
2019-07-08 22:42:31 +02:00