Commit Graph

29 Commits

Author SHA1 Message Date
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