Marc Mueller
87bb7ced79
Use PEP 695 for simple type aliases ( #117633 )
2024-05-17 14:42:21 +02:00
epenet
458cc838cf
Rename wemo coordinator module ( #117437 )
2024-05-14 20:21:50 +02:00
J. Nick Koston
89049bc022
Fix config entry _async_process_on_unload being called for forwarded platforms ( #117084 )
2024-05-08 23:59:37 +02:00
Sid
2cc916db6d
Replace pylint broad-except with Ruff BLE001 ( #116250 )
2024-05-07 14:00:27 +02:00
J. Nick Koston
c3aa238a33
Fix wemo push updates delaying shutdown ( #116333 )
2024-04-28 08:14:45 -05:00
J. Nick Koston
ca5ed274cb
Deprecate calling async_listen and async_listen_once with run_immediately ( #115169 )
2024-04-08 10:07:54 -10:00
J. Nick Koston
69a6e9f5d7
Use eager_start to forward wemo config entry platforms ( #114702 )
...
* Use eager_start to forward wemo config entry platforms
These can all be setup synchronously
* do not create another task
2024-04-03 20:29:48 +02:00
Sid
a5b609f081
Enable ruff TRY401 ( #114395 )
...
* Enable ruff TRY401
* fix tests
2024-03-29 07:20:36 +01:00
J. Nick Koston
abb217086f
Group wemo platform forwards to reduce overhead ( #113972 )
2024-03-21 21:59:50 -04:00
J. Nick Koston
b26f0bc488
Only create one executor job to shutdown wemo ( #113836 )
...
Currently we created two but the work can be done in a single job
2024-03-19 19:59:37 -04:00
Sid
6ee273a548
Clean up unneeded ruff noqa directives ( #113616 )
2024-03-16 09:48:37 -10:00
Joost Lekkerkerker
5f48083eca
Add service icons to Wemo ( #113363 )
2024-03-14 13:11:55 +01:00
J. Nick Koston
5ae207001f
Avoid multiple executor jobs to add wemo devices ( #112484 )
2024-03-12 18:49:17 +01:00
J. Nick Koston
5e2edb6819
Ensure wemo discovery is run in a background task ( #112665 )
2024-03-11 15:13:41 +01:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller
cb8c14496c
Use more f-strings [ruff] ( #112695 )
2024-03-08 18:44:42 +01:00
Paulus Schoutsen
f416d67d21
Remove built-in support for import_executor in manifest ( #112725 )
2024-03-08 12:02:32 -05:00
Marc Mueller
c773d57d39
Add empty line after module docstring [w-z] ( #112706 )
2024-03-08 10:35:45 -05:00
J. Nick Koston
87a82e0562
Fix detection of DLI sockets in wemo ( #112485 )
2024-03-06 10:34:18 +01:00
Erik Montnemery
9ec9ac4fd4
Migrate integrations u-z to generic flowhandler ( #111866 )
2024-02-29 20:08:16 +01:00
J. Nick Koston
7a3f829eac
Import wemo in the executor to avoid blocking the event loop ( #111587 )
...
`2024-02-26 21:12:29.792 DEBUG (MainThread) [homeassistant.loader] Importing platform wemo.config_flow took 1.11s (loaded_executor=False)`
2024-02-26 23:20:55 -05:00
Marc Mueller
d2dee9e327
Update ruff to 0.1.15 ( #109303 )
2024-02-01 13:29:01 +01:00
Jan-Philipp Benecke
95aea1488d
Add pylint plugin to check if coordinator is placed in its own module ( #108174 )
...
* Add pylint plugin to check if coordinator is placed in its own module
* Remove unintended changes
* Remove pylint disable and let CI only fail on W,E,F
* Make check conventional
* Apply review suggestion
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Use option instead
* Remove pylint arguments from pre-commit
* Partially revert "Remove pylint disable and let CI only fail on W,E,F"
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-01-29 10:30:19 +01:00
J. Nick Koston
da9fc77333
Save the HassJob type in wemo discovery to avoid checking it each time ( #107998 )
2024-01-13 23:50:21 -05:00
Eric Severance
82dc8260c6
Bump pywemo to 1.4.0 ( #107623 )
2024-01-08 20:01:15 -10:00
Erik Montnemery
0c2485bc03
Freeze integration entity descriptions ( #105984 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-18 16:28:13 -10:00
Jan Bouwhuis
e8475b9b33
Add scaling utils for brightness and fanspeed ( #104753 )
...
Co-authored-by: Robert Resch <robert@resch.dev>
2023-12-04 12:10:58 +01:00
Erik Montnemery
dff18b4a16
Rename gather_with_concurrency
to gather_with_limited_concurrency
( #102241 )
...
* Rename gather_with_concurrency to gather_with_limited_concurrency
* Update test
2023-10-19 15:08:52 +02:00
Eric Severance
30b815bfb8
Bump pywemo to 1.3.0 ( #99172 )
2023-08-28 09:34:30 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry ( #98149 )
...
* Move DeviceInfo from entity to device registry
* Update integrations
2023-08-10 22:04:26 -04:00
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma ( #98162 )
2023-08-10 14:27:03 +02:00
Eric Severance
8b8a51ffc8
Bump pywemo to 1.2.1 ( #97550 )
2023-08-01 10:08:08 +02:00
Eric Severance
7b25702605
Bump pywemo to 1.2.0 ( #97520 )
2023-07-31 12:38:31 +02:00
Franck Nijhof
86708b5590
Update ruff to v0.0.280 ( #97102 )
2023-07-23 22:00:26 +02:00
Eric Severance
5ffffd8dbc
Fully unload wemo config entry ( #96620 )
...
* 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
c0ffeeca7
c989e56d3c
Rename life to lifetime: wemo ( #96845 )
2023-07-18 17:50:02 +02:00
Franck Nijhof
8d360611d1
Migrate integration services (W-Z) to support translations ( #96381 )
2023-07-12 07:36:51 +02:00
Eric Severance
abdbea8522
Bump pywemo from 0.9.1 to 1.1.0 ( #95951 )
2023-07-08 09:26:19 +02:00
Eric Severance
03dac6e171
Remove polling_interval_seconds option from wemo ( #95468 )
2023-06-28 20:27:10 +02:00
Eric Severance
bbae2061e7
Add wemo options enable_subscription & enable_long_press ( #56972 )
...
* Add wemo options enable_subscription & enable_long_press
* Also add polling_interval_seconds option
* Give feedback about invalid option combinations
* Use a frozen dataclass for Options
* Validate polling_interval_seconds
* Describe message arg
* Replace broad exception with PyWeMoException
2023-06-27 20:10:13 +02:00
Eric Severance
7f7b7aee6d
pyWeMo serialnumber is deprecated, use serial_number ( #94791 )
2023-06-17 20:59:19 -04:00
Erik Montnemery
2406b235b4
Name unnamed binary sensors by their device class ( #92940 )
...
* Name unnamed binary sensors by their device class
* Update type annotations
* Fix loading of entity component translations
* Add test
* Update integrations
* Set abode and rfxtrx binary_sensor name to None
* Revert changes in homekit_controller
2023-06-13 19:48:54 +02:00
Erik Montnemery
a71c097aeb
Revert "Allow setting an entity's name by its device class" ( #93539 )
2023-05-25 17:20:54 +02:00
epenet
f6b700372a
Allow wemo config entry to be unloaded ( #93082 )
...
* Fix lingering timer in wemo
* Also stop the subscriptions
2023-05-16 06:31:31 +02:00
Marc Mueller
2b59adc955
Update mypy to 1.3.0 ( #92911 )
2023-05-11 08:38:08 +02:00
Erik Montnemery
67c1051305
Allow setting an entity's name by its device class ( #90767 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-05-09 18:55:55 +02:00
Eric Severance
68ce59e9c1
Skip adding WeMo device on failure ( #91621 )
...
* 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
Erik Montnemery
6c2702a7b8
Sort manifests 11 ( #87032 )
2023-02-08 20:10:18 +01:00
Franck Nijhof
939eef3b28
Remove translations from Core ( #87543 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
Franck Nijhof
d4955a3d87
Replace assert False by raising an error ( #86686 )
2023-01-26 16:51:43 +01:00