Pierre Ståhl
f72cbc0b5a
Run pylint from tox ( #243 )
2020-12-17 09:26:55 +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
27af622405
Store product key in config entry ( #170 )
2020-11-19 10:13:00 +01:00
Pierre Ståhl
1dbae752ef
Give error if no DPS are found in config flow ( #167 )
...
Fixes #153
2020-11-18 11:39:11 +01:00
Pierre Ståhl
c8a44019fa
Improve discovery error output ( #134 )
2020-11-17 12:26:18 +01:00
Kendell R
c1878f82e2
Improve GitHub Actions ( #97 )
...
* Delete hassfest.yaml
* Update and rename ci.yaml to tox.yaml
* Create combined.yaml
* Update hacs.json
* Update README.md
* Update combined.yaml
* Remove unused import
* Restored wrongly deleted line in cover.py
* Update config_flow.py
* Update __init__.py
Co-authored-by: Pierre Ståhl <pierre.staahl@gmail.com >
Co-authored-by: rospogrigio <49229287+rospogrigio@users.noreply.github.com >
2020-10-22 11:43:47 +02:00
Pierre Ståhl
d96d02357b
Use manual discovery if no device has been set ul
2020-10-21 10:49:29 +02:00
Pierre Ståhl
439f8aec0c
Passively discover devices and update IP addresses
2020-10-21 10:49:29 +02:00
Pierre Ståhl
1d830552df
Fix bug when connection fails
2020-10-16 22:43:00 +02:00
Pierre Ståhl
cad31f1ffe
Convert pytuya to asyncio
2020-10-14 13:10:20 +02:00
rospogrigio
1bd0a28045
Cover Curr and Set Pos DPS now are chosen in a drop-down menu
2020-10-02 10:08:52 +02:00
Pierre Ståhl
2879761eae
Remove unneeded YAML import flag
2020-09-26 22:59:28 +02:00
Pierre Ståhl
63090ba985
Store DPS as integers in config entry
...
Also require protocol_version to be a string and validate version to be
supported.
2020-09-26 22:38:26 +02:00
rospogrigio
3259a4f654
Second part of one_device_only big merge
2020-09-26 22:38:26 +02:00
Pierre Ståhl
0048ce6d5e
Move YAML config to component
2020-09-26 22:38:26 +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
Pierre Ståhl
1e23120872
Add device discovery to config flow
2020-09-21 00:43:06 +02:00
Pierre Ståhl
5507652bae
Add support for options flow
2020-09-18 17:31:14 +02:00
rospogrigio
7afd19d197
Still prefer to keep '(YAML)' suffix for Integrations imported from YAML, for the moment
2020-09-18 09:40:12 +02:00
Pierre Ståhl
e79b4cf619
Use friendly_name instead of name in config entry
2020-09-18 09:40:12 +02:00
rospogrigio
16cb29297b
Introduced dps detection with bruteforcing for type_0d devices
2020-09-16 19:36:51 +02:00
Pierre Ståhl
0290b11dae
Request DPS 1-150 in config flow
2020-09-16 19:36:51 +02:00
rospogrigio
4056c0abb0
Fixing device name
2020-09-16 10:03:19 +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
0e94b681db
Fixed import from YAML in config_flow.py
2020-09-14 20:44:55 +02:00
rospogrigio
c008339f43
First working implementation of Devices
2020-09-11 14:48:49 +02:00
rospogrigio
9a45eb8398
Fixed conflicts
2020-09-11 11:55:43 +02:00
Pierre Ståhl
11763d90c5
Use generic Device in config flow
2020-09-09 23:06:28 +02:00
Pierre Ståhl
7efb3024fb
Support arbitrary flow schemas for platforms
2020-09-09 23:05:42 +02:00
Pierre Ståhl
7018625f04
Add light support and clean up schemas
2020-09-09 22:59:37 +02:00
Pierre Ståhl
43a36f458c
Remove pre-filled values from config_flow
...
Also improve relative module import by not hardcoding package path.
2020-09-08 20:11:43 +02:00
Pierre Ståhl
0600b2730b
Make config flows general based on entities
2020-09-08 12:00:23 +02:00
Pierre Ståhl
b8333affc5
Add support for config flows for switches
2020-09-06 10:29:39 +02:00