Commit Graph

155 Commits (45a98aee10f26415705d8d50c57305d8b0e23102)

Author SHA1 Message Date
J. Nick Koston 38a2f196b8
Fix typing on fan percentage () 2021-03-02 08:32:24 +01:00
Eric Severance 1d7660f071
Explain why should_pool is True initially for wemo () 2021-02-28 13:51:43 -10:00
HomeAssistant Azure 0cb1f61deb [ci skip] Translation update 2021-02-21 00:07:04 +00:00
Eric Severance 6e52b26c06
Speed-up wemo discovery ()
* Speed-up wemo discovery

* Use gather_with_concurrency to limit concurrent executor usage

* Comment fixup: asyncio executors -> executor threads
2021-02-20 11:16:50 -10:00
Eric Severance fe4cf611f7
Disable update polling for Wemo when devices can push updates () 2021-02-20 09:37:48 -10:00
Eric Severance 806369ddc1
Bump pywemo to 0.6.3 () 2021-02-20 20:21:01 +01:00
Eric Severance e6125a1e4e
Bump pywemo to 0.6.2 () 2021-02-20 03:49:39 +01:00
J. Nick Koston f2b303d509
Implement percentage step sizes for fans ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-02-18 21:05:09 -10:00
Eric Severance 76e5f86b76
Add @esev as codeowner for wemo () 2021-02-18 19:08:48 +01:00
Eric Severance 2ac075bb37
Perform wemo state update quickly after a timeout ()
* Perform state update quickly after a timeout

* with async_timeout.timeout(...) -> async with async_timeout.timeout(...)
2021-02-18 00:38:08 +01:00
Eric Severance 8bee3cda37
Centralize wemo exception handling () 2021-02-17 23:36:39 +01:00
Eric Severance eb3e5cb67f
Remove calls to wemo.reconnect_with_device () 2021-02-17 13:17:31 +01:00
Eric Severance f7c0fc5553
Increase async_timeout for wemo update polling () 2021-02-17 13:17:16 +01:00
Eric Severance 94131df5e0
Remove exception handling for AttributeError in wemo () 2021-02-17 00:07:22 -08:00
tkdrob 7e88487800
Use core constants for wemo () 2021-02-14 17:01:53 -05:00
Paulus Schoutsen 959ed6d077 Update translations 2021-02-03 11:46:49 +01:00
J. Nick Koston 0441960ffd
Update wemo to use new fan entity model () 2021-01-28 10:06:18 +01:00
J. Nick Koston 068d1b5eb8
Separate fan speeds into percentages and presets modes ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: John Carr <john.carr@unrouted.co.uk>
2021-01-27 17:44:36 -06:00
Eric Severance 12e31b9571
Bump pyWeMo to 0.6.1 () 2021-01-24 19:16:12 +01:00
Matt Bilodeau a750c95d2e
Add OutdoorPlug to wemo () 2020-12-30 02:43:44 +01:00
Matt Bilodeau adf4eb0cc9
Bump pywemo to 0.5.6 () 2020-12-25 16:37:30 +01:00
Eric Severance d912e91e81
Periodically attempt to discover new wemo devices ()
* Periodically attempt to discover new wemo devices

* Set self._stop=None after stopping the periodic discovery task

* Use the async_fire_time_changed test helper to simplify test_discovery

* Stop the pywemo registry outside of the async loop

* Add a comment describing why async_fire_time_changed is used
2020-12-24 12:25:14 +01:00
Eric Severance 2765c6f1e9
Register Wemo fan services with entity service helper ()
* Use a singleton for the Wemo registry and fan services

* Undo changes to the wemo subscription registry

* Use an entity service helper to register the Wemo fan services

* Fix Wemo fan test (missing ATTR_ENTITY_ID)

* Use the function name directly rather than a string

* Improve test coverage of the set_humidity service
2020-12-15 14:19:57 +01:00
Eric Severance d4ab7880af
Replace hard-coded domain strings with constants in the Wemo module () 2020-12-15 05:03:02 +01:00
Eric Severance 8255815688
Share wemo entity code to reduce duplicate boilerplate () 2020-12-13 12:02:45 +01:00
Eric Severance 8fe5e61cbf
Test edge cases in wemo platform code () 2020-12-12 19:41:20 +01:00
HomeAssistant Azure 848224262c [ci skip] Translation update 2020-12-10 00:03:01 +00:00
Eric Severance c9c3a8fe38
Unregister updates when a Wemo entry is removed () 2020-12-07 14:10:46 +01:00
HomeAssistant Azure 42f00cff30 [ci skip] Translation update 2020-12-04 00:05:42 +00:00
Greg Dowling 5d83f0a911
Bump Pywemo to 0.5.3 () 2020-11-16 13:17:58 +01:00
Joshua M. Boniface be93060e99
Move setup_url_for_address to pyWeMo library ()
* Move setup_url_for_address to PyWemo library

* Bump pywemo to 0.5.2

* Use module-level function call

* Update requirements via script
2020-11-12 06:37:27 +01:00
HomeAssistant Azure aab0ff2ea5 [ci skip] Translation update 2020-11-03 00:04:39 +00:00
HomeAssistant Azure ed232ac733 [ci skip] Translation update 2020-10-24 00:05:17 +00:00
HomeAssistant Azure 994ae09f69 [ci skip] Translation update 2020-10-15 00:03:50 +00:00
J. Nick Koston 6c0d5fa1d6
Switch legacy async_add_job to async_add_executor_job in wemo ()
These calls were already using async_add_executor_job in some of the
other platforms
2020-10-14 08:19:09 +02:00
HomeAssistant Azure ba55cb8955 [ci skip] Translation update 2020-10-14 00:04:41 +00:00
HomeAssistant Azure f787289ea0 [ci skip] Translation update 2020-10-12 00:03:31 +00:00
HomeAssistant Azure 80522f1bdc [ci skip] Translation update 2020-10-11 00:03:37 +00:00
HomeAssistant Azure 6ae12c3faf [ci skip] Translation update 2020-10-10 00:05:05 +00:00
HomeAssistant Azure bcfa4ac959 [ci skip] Translation update 2020-10-06 00:08:09 +00:00
HomeAssistant Azure 8d1d585b40 [ci skip] Translation update 2020-10-05 00:04:23 +00:00
HomeAssistant Azure f8c2d877aa [ci skip] Translation update 2020-10-04 00:05:05 +00:00
Jason Madigan be41442a86
Use reference strings in Wemo () 2020-10-03 14:43:30 +02:00
Adam Belebczuk 02a19d0123
Bump pywemo to 0.5.0 () 2020-09-22 11:24:22 +02:00
Franck Nijhof 1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
Eric Severance f01634f75c
Add wemo 'Socket' model for Homekit discovery ()
Corresponds with the model WSP080 WiFi Smart Plug
https://www.belkin.com/us/p/P-WSP080/

```
[homeassistant.components.zeroconf] Discovered new device Wemo Plug 603._hap._tcp.local. {'host': '10.234.200.95', 'port': 54664, 'hostname': 'Wemo Plug 603.local.', 'type': '_hap._tcp.local.', 'name': 'Wemo Plug 603._hap._tcp.local.', 'properties': {'_raw': {'c#': b'2', 'ff': b'2', 'id': b'63:30:B3:10:BA:B1', 'md': b'Socket', 'pv': b'1.1', 's#': b'1', 'sf': b'1', 'ci': b'7', 'sh': b'AD4l7g=='}, 'c#': '2', 'ff': '2', 'id': '63:30:B3:10:BA:B1', 'md': 'Socket', 'pv': '1.1', 's#' : '1', 'sf': '1', 'ci': '7', 'sh': 'AD4l7g=='}}
```
2020-08-21 08:36:20 -06:00
Eric Severance 2f955ccfd7
Bump pywemo to 0.4.46 () 2020-08-13 21:00:55 -05:00
Eric Severance 06ddb2c95e
Bump pywemo to 0.4.45 () 2020-07-30 18:19:43 -05:00
HomeAssistant Azure e766a119d2 [ci skip] Translation update 2020-07-22 00:02:30 +00:00
Adam Belebczuk fe03c9da68
Update Wemo state when changing state () 2020-06-16 21:14:04 +02:00
HomeAssistant Azure b15caf31a9 [ci skip] Translation update 2020-06-15 00:03:32 +00:00
HomeAssistant Azure 564fb1d1e5 [ci skip] Translation update 2020-05-29 00:04:16 +00:00
HomeAssistant Azure c10aa13d0b [ci skip] Translation update 2020-05-20 00:03:49 +00:00
Adam Belebczuk 5104b79b4b
Bump PyWeMo version to 0.4.43 ()
* PyWeMo version bump to 0.4.43

Changes necessary to safely upgrade to pyWeMo 0.4.43. This includes catching ActionExceptions that may be thrown by pyWeMo when it is unable to interact with a physical device.

* Black formatting fix

* Fix isort issues

* Code review changes

* More code review fixes

* Linting fix

* Undo dict.get change

* Change a couple instances of dict[key] to dict.get
2020-05-17 22:13:38 +02:00
HomeAssistant Azure 7faba60e83 [ci skip] Translation update 2020-04-29 00:03:31 +00:00
Erik Montnemery 066e921a8b
Rename SwitchDevice to SwitchEntity () 2020-04-26 18:50:37 +02:00
Erik Montnemery e4333a7a44
Rename Light to LightEntity () 2020-04-26 18:49:41 +02:00
HomeAssistant Azure 90e0a1af8a [ci skip] Translation update 2020-04-26 00:02:45 +00:00
Erik Montnemery b022e08db9
Rename BinarySensorDevice to BinarySensorEntity ()
* Rename BinarySensorDevice to BinarySensorEntity

* Tweak

* Move deprecation warning to __new__, add test

* Move deprecation warning back to __init__

* Move deprecation warning to __init_subclass
2020-04-23 21:57:07 +02:00
Paulus Schoutsen e002c84eba
Don't set step title if it's integration title () 2020-04-22 15:05:39 +02:00
Joakim Sørensen 730a257f3c
Rename translations dir for integrations () 2020-04-21 16:11:05 -07:00
Paulus Schoutsen 0d60d40512 Update translations 2020-04-16 13:00:10 -07:00
Paulus Schoutsen 55dfca7467
Drop title from translations if brand name () 2020-04-16 12:52:53 -07:00
Paulus Schoutsen f06aeea385 Update translations 2020-04-15 09:51:07 -07:00
Paulus Schoutsen d36204a968
Move title translation to root () 2020-04-15 09:41:18 -07:00
Franck Nijhof 39336d3ea3
Add prettier (in pre-commit and CI) ()
* Add prettier (in pre-commit and CI)

* Make all file prettier

* Change order

* Add to Azure Pipelines

* Fix a YAML file prettier caught as invalid

* Remove flow mapping using curly braces from all YAML service files
2020-04-05 17:27:16 +02:00
Paulus Schoutsen f1d3c0d19b
Remove unused manifest fields () 2020-04-03 12:58:19 -07:00
Paulus Schoutsen aaa1d06809
Directly call async_write_ha_state ()
* Directly call async_write_ha_state

* Address comments

* Fix tests
2020-04-01 14:19:51 -07:00
Dan Lehman 0a90b01e77
Updated wemo lights fix for () 2020-01-31 21:42:37 -08:00
Paulus Schoutsen 06efe3a2f6
Fix wemo device types for lights () 2020-01-31 14:01:25 -08:00
Paulus Schoutsen d5486f883d
Fix wemo lights () 2020-01-30 11:40:16 -08:00
Paulus Schoutsen f4626375f3
Fix when you have two wemo devices () 2020-01-24 14:59:54 -08:00
Paulus Schoutsen f14d34560e
Improve Wemo config entry support, add device info ()
* Improve config entry support, add device info

* async_dispatch_connect

* Fix I/O in event loop

* Do not raise PlatformNotReady inside dispatcher

* Make main discovery process async

* Do discovery as part of set up.

* Greatly simplify set up

* Add parallel updates to fan&switch

* mini cleanup

* Address comments
2020-01-19 12:56:31 -08:00
Franck Nijhof b4d6d238e5 Correct names in manifests (T-Z) () 2020-01-07 14:31:18 +01:00
Franck Nijhof a84741392b
Format all manifests with prettier () 2020-01-06 21:28:23 +01:00
Ville Skyttä 5216477353
Be consistent with Home Assistant and Hass.io spelling ()
* Be consistent with Home Assistant spelling

* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
HomeAssistant Azure 13116d8d3f [ci skip] Translation update 2019-12-30 00:32:19 +00:00
HomeAssistant Azure bb35d93fde [ci skip] Translation update 2019-12-25 00:32:06 +00:00
Bas Nijholt b6cd6135c2 Sort imports according to PEP8 for wemo () 2019-12-09 11:53:51 +01:00
Raman Gupta 88376bf363 move wemo services to wemo domain () 2019-11-27 16:49:12 -08:00
Ville Skyttä 1679ec3245 SSDP matching improvements ()
* SSDP matching improvements

- support multiple match groups per domain
- require matches on all, not any item in a group
- support matching on all UPnP device description data

* Manifest structure fixes
2019-11-02 12:30:09 -07:00
Quentame 7b13f0caf7 Move imports in wemo component () 2019-10-10 09:50:58 -07:00
HomeAssistant Azure 768bb00177 [ci skip] Translation update 2019-10-09 00:32:17 +00:00
Franck Nijhof c7da781efc Update documentation link URL for integrations in all manifests () 2019-10-02 09:25:44 -07:00
HomeAssistant Azure b04a70995e [ci skip] Translation update 2019-09-27 00:32:12 +00:00
Paulus Schoutsen 2e4cc7e5a0 Prevent Wemo doing I/O in event loop ()
* Prevent Wemo doing I/O in event loop

* Update config_flow.py
2019-09-22 21:46:32 -06:00
Franck Nijhof ef0e9431b6 Use literal string interpolation in integrations T-W (f-strings) () 2019-09-03 21:12:51 +02:00
Paulus Schoutsen 36312bdef1 Add translations 2019-08-29 12:32:15 -07:00
Paulus Schoutsen e69953fe2d Update translations 2019-08-28 12:45:48 -07:00
Paulus Schoutsen 87119472a3 Update translations 2019-08-11 20:42:50 -07:00
Paulus Schoutsen 37d78af42c Add translations 2019-07-31 16:16:40 -07:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen e841f568c1 Update translations 2019-06-24 08:27:46 -07:00
Paulus Schoutsen ca70b96005 Update translations 2019-06-18 11:54:56 -07:00
Paulus Schoutsen 92816b57ef Update translations 2019-06-14 14:53:13 -07:00
Paulus Schoutsen 0dc0706eb2
Add more HomeKit models for discovery ()
* Add more HomeKit models for discovery

* Discover Tradfri with HomeKit

* Add Wemo device info

* Allow full match for HomeKit model

* Fix tests
2019-06-07 22:59:51 -07:00
Paulus Schoutsen 14c0ada9ac Update translations 2019-06-04 08:50:48 -07:00
Paulus Schoutsen 4c88578371
Add a discovery config flow to Wemo () 2019-06-03 10:06:53 -07:00
Paulus Schoutsen a52f96b23a
Add stub services.yaml and make validation mandatory () 2019-04-18 15:13:35 -07:00
Paulus Schoutsen 6b0180f753
Fix demo ()
* Fix demo

* Fix types

* Fix all the things

* Fix type

* Fix test

* Lint
2019-04-14 16:59:06 -07:00