epenet
fd811c85e9
Migrate wemo light tests to use Kelvin ( #133031 )
2024-12-12 20:28:08 +01:00
Paulus Schoutsen
0677a256ec
Add model ID to Wemo ( #125368 )
2024-09-05 23:03:50 +02:00
epenet
c2dc4ef215
Add missing hass type hint in component tests (w) ( #124284 )
2024-08-20 12:54:42 +02:00
epenet
c65f845329
Improve type hints in wemo tests ( #123923 )
...
* Improve type hints in wemo tests
* typo
2024-08-14 15:40:57 +02:00
epenet
c7cc465e5c
Add return type hints in tests (k-z) ( #118942 )
2024-06-06 10:11:29 +02:00
epenet
f07f183a3e
Use registry fixtures in tests (v-y) ( #118299 )
2024-05-28 14:26:14 +02:00
epenet
458cc838cf
Rename wemo coordinator module ( #117437 )
2024-05-14 20:21:50 +02:00
Joost Lekkerkerker
2ef0521d3d
Use is in enum comparison in config flow tests U-Z ( #114677 )
...
* Use right enum expression U-Z
* Fix
2024-04-02 23:09:56 +02:00
J. Nick Koston
f0b07ae942
Add pytest rewrite for wemo tests that use entity_test_helpers ( #114516 )
2024-03-30 17:35:49 -10:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
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
81c34ac952
Fix spelling [docstrings + comments] ( #114168 )
2024-03-25 11:33:00 +01:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
Marc Mueller
87165c0d6e
Add empty line after module docstring [tests t-z] ( #112712 )
2024-03-08 14:44:56 +01:00
Erik Montnemery
ee1007abdb
Use real devices in wemo device trigger tests ( #102699 )
2023-10-24 22:44:50 +02:00
Marc Mueller
8b0fdd6fd2
Use asyncio.timeout [s-z] ( #98452 )
2023-08-15 14:34:18 +02:00
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma ( #98162 )
2023-08-10 14:27:03 +02:00
Meow
a4b2ded503
Refactor deprecated RESULT_TYPE_* ( #97367 )
2023-07-30 19:27:30 +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
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
Erik Montnemery
a338e7e242
Use entity registry id in toggle_entity device automations ( #94995 )
...
* Use entity registry id in toggle_entity device automations
* Update tests
---------
Co-authored-by: J. Nick Koston <nick@koston.org >
2023-06-26 09:59:01 +02:00
Erik Montnemery
6183a36fce
Replace assert_lists_same with pytest_unordered in integrations t-z ( #94903 )
2023-06-20 20:23:49 +02:00
Eric Severance
7f7b7aee6d
pyWeMo serialnumber is deprecated, use serial_number ( #94791 )
2023-06-17 20:59:19 -04:00
Allen Porter
12129e9d21
Update service call return values and error handling ( #94657 )
...
* Update return signature of service calls
* Add timeout error handling in websocket api for service calls
* Update recorder tests to remove assertion on service call
* Remove timeout behavior and update callers that depend on it today
* Fix tests
* Add missing else
* await coro directly
* Fix more tests
* Update the intent task to use wait instead of timeout
* Remove script service call limits and limit constants
* Update tests that depend on service call limits
* Use wait instead of wait_for and add test
* Update homeassistant/helpers/intent.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2023-06-16 07:01:40 -07:00
Ville Skyttä
1ce74ba25c
Import util.dt as dt_util in components/[t-z]* ( #93763 )
2023-05-29 23:00:43 +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
epenet
9762b684c2
Adjust entity registry access in tests (3) ( #88964 )
2023-03-01 16:04:40 +01:00
epenet
5b80b1f55a
Add type hints to integration tests (part 25) ( #88308 )
2023-02-17 16:52:28 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
J. Nick Koston
aaeb909148
Fix wemo tests with py3.11 ( #88123 )
2023-02-14 13:58:57 -06:00
epenet
278050a73f
Add type hints to integration tests (t-z) ( #87707 )
2023-02-08 19:10:53 +01:00
Franck Nijhof
ef800335fb
Enable Ruff PT022 ( #86792 )
...
* Enable Ruff PT022
* Adjust found cases
2023-01-27 13:57:06 +01:00
Franck Nijhof
a79885ceaf
Enable Ruff SIM117 ( #86783 )
2023-01-27 11:52:49 +01:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
Robert Hillis
5c5fd746fd
Add digital loggers as a Belkin supported brand ( #72515 )
2022-06-22 22:38:45 +02:00
Eric Severance
f0b9aa7894
Bump pywemo==0.8.1 ( #72400 )
2022-05-24 09:53:01 +02:00
Eric Severance
92582beeff
Use properties of wemo Maker device ( #72378 )
2022-05-23 19:28:16 +02:00
Eric Severance
e2a80e7a45
Remove unnecessary class from wemo test_fan ( #72377 )
2022-05-23 19:02:42 +02:00
Eric Severance
cf5e21a996
Use properties of wemo Insight device ( #72316 )
2022-05-23 08:43:42 +02:00
epenet
75ce66e8bd
Migrate wemo light to ColorMode ( #70857 )
2022-05-09 18:42:18 +02:00
Erik Montnemery
5e50a8abd5
Mark device triggers from hidden or auxiliary entities as secondary ( #70335 )
...
* Mark device triggers from hidden or auxiliary entities as secondary
* Update tests
2022-04-21 08:01:32 +02:00
Eric Severance
c6ba987995
Use device properties for WeMo Insight sensors ( #63525 )
2022-03-28 17:47:18 -07:00
Eric Severance
35cf6d7a7b
Use wemo enums in fan entity ( #64397 )
2022-01-18 22:13:25 -10:00
Erik Montnemery
513d6cc467
Change value of device_automation constant ( #64296 )
...
* Change value of constant CONF_CHANGED_STATES
* Adjust tests
2022-01-17 16:34:40 +01:00
Eric Severance
8459a28489
WeMo state changes are seen by all coordinator entities ( #64228 )
...
* WeMo push update is seen by all coordinator entities
* Rename _wemo_exception_handler -> _wemo_call_wrapper
* Test turning off the entity
* Test setting light brightness
* Improve brightness test
* It is unnecessary to setup the platform integration
* Use domain names, not platform enum, in service calls
2022-01-17 10:03:24 +01:00
Eric Severance
7eacabf684
Share common EntityTestHelpers in wemo tests ( #62455 )
2022-01-05 17:22:38 -08:00
Erik Montnemery
e9b746e874
Add turned on or off device trigger to toggle entity ( #61089 )
...
* Add turned on or off device trigger to toggle entity
* Renamed changed_states trigger to toggled
* Adjust tests
* Fix homekit triggers test
* Add tests
* Adjust tests after rebase
Co-authored-by: J. Nick Koston <nick@koston.org >
2022-01-03 10:41:30 +01:00
Eric Severance
a1be11a492
Store wemo device sw_version & upnp connections ( #62758 )
2021-12-24 10:31:42 -10:00
Ville Skyttä
ea58432721
Use DeviceAutomationType in tests/components/[s-z]* ( #62450 )
2021-12-21 11:56:00 +01:00
Eric Severance
2dfd4c49da
Fix Non-thread-safe operation in wemo tests ( #62418 )
2021-12-20 12:56:56 -06:00