1
0
mirror of https://github.com/home-assistant/core.git synced 2025-08-18 01:40:11 +00:00
Commit Graph

20 Commits

Author SHA1 Message Date
Paulus Schoutsen
0677a256ec Add model ID to Wemo () 2024-09-05 23:03:50 +02:00
epenet
f07f183a3e Use registry fixtures in tests (v-y) () 2024-05-28 14:26:14 +02:00
Joost Lekkerkerker
6bb4e7d62c Bump ruff to 0.3.4 ()
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller
32f3f46542 Add empty line after module docstring (2) [tests.components] () 2024-03-08 19:16:21 +01:00
Eric Severance
5ffffd8dbc Fully unload wemo config entry ()
* Fully unload wemo config entity

* Test reloading the config entry

* Encapsulate data with dataclasses

* Fix missing test coverage

* Replace if with assert for options that are always set

* Move WemoData/WemoConfigEntryData to models.py

* Use _ to indicate unused argument

* Test that the entry and entity work after reloading

* Nit: Slight test reordering

* Reset the correct mock (get_state)

* from .const import DOMAIN

* Nit: _async_wemo_data -> async_wemo_data; not module private
2023-07-20 10:06:16 +02:00
Eric Severance
7f7b7aee6d pyWeMo serialnumber is deprecated, use serial_number () 2023-06-17 20:59:19 -04:00
Ville Skyttä
1ce74ba25c Import util.dt as dt_util in components/[t-z]* () 2023-05-29 23:00:43 +02:00
Eric Severance
68ce59e9c1 Skip adding WeMo device on failure ()
* Skip adding WeMo device on failure

* Only create a single log entry for each failed device

* Fix typo s/serial_number/serialnumber/

* Discard failed devices on success
2023-04-22 23:10:08 +02:00
epenet
5b80b1f55a Add type hints to integration tests (part 25) () 2023-02-17 16:52:28 +01:00
epenet
278050a73f Add type hints to integration tests (t-z) () 2023-02-08 19:10:53 +01:00
Franck Nijhof
a79885ceaf Enable Ruff SIM117 () 2023-01-27 11:52:49 +01:00
Eric Severance
a1be11a492 Store wemo device sw_version & upnp connections () 2021-12-24 10:31:42 -10:00
Eric Severance
61079ab7fa Support receiving long-press events from WeMo devices ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-06-16 12:00:34 +02:00
CantankerousBullMoose
9316f566c9 Rescan static wemo ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-17 12:18:14 +02:00
Erik Montnemery
b3fecb1c95 Update tests t-z to use async_get() instead of async_get_registry() () 2021-03-09 14:25:03 +01:00
Eric Severance
f05f60c4c4 Revert "Speed-up wemo discovery ()" ()
This reverts commit 6e52b26c06.
2021-03-04 13:07:42 -08: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
Franck Nijhof
65cf2fcb6f Drop asynctest () 2021-01-01 22:31:56 +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
69a7eff55d Add tests for the Wemo __init__ module ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-12-15 09:59:23 +01:00