epenet
0cf2ee0bcb
Remove unnecessary DOMAIN alias in tests (l-r) ( #146009 )
...
* Remove unnecessary DOMAIN alias in tests (l-r)
* Keep late import in lirc
2025-06-02 08:54:55 +02:00
javicalle
3d83c6299b
Enable RFDEBUG on RFLink "Enable debug logging" ( #138571 )
...
* Enable RFDEBUG on "Enable debug logging"
* fix checks
* fix checks
* one more lap
* fix test
* wait to init rflink
In my dev env this is not needed
* use hass.async_create_task(handle_logging_changed())
instead async_at_started(hass, handle_logging_changed)
* revert unneeded async_block_till_done
* Remove the startup management
There's a race condition at startup that can't be managed nicely
2025-05-18 22:51:42 +02:00
epenet
d0a188b86d
Standardize homeassistant imports in component tests (m-z) ( #136807 )
2025-01-29 08:57:57 +01:00
G Johansson
666e8e133e
Cover state is enum ( #127144 )
...
* Change light state to use enum
* Adjust cover tests
* Update cover
* Fix covers
* Some tests
* More tests
* Fix tests
* Fix
2024-10-08 18:39:04 +02:00
epenet
1ff69825e4
Move rflink base entity to separate module ( #126206 )
2024-09-18 11:41:49 +02:00
Marc Mueller
a6068dcdf2
Update import locations in tests ( #122216 )
2024-07-20 11:16:04 +02:00
epenet
2ab02c06c6
Add monkeypatch type hints to rflink tests ( #121053 )
2024-07-05 10:54:16 +02:00
epenet
166c588cac
Add LogCaptureFixture type hints in tests ( #118372 )
2024-05-29 14:10:00 +02:00
epenet
8d8696075b
Use registry fixtures in tests (r) ( #118293 )
2024-05-28 14:23:31 +02:00
Erik Montnemery
745c4aef30
Rename some rflink tests ( #117247 )
2024-05-11 14:18:41 +01:00
Sid
d846676e84
Enable first batch of Ruff RET rules ( #114480 )
...
* Enable first batch of Ruff RET rules
* disable pylint rules
2024-03-31 11:30:59 +02:00
Marc Mueller
7d6251ca08
Add empty line after module docstring [tests q-s] ( #112711 )
2024-03-08 14:47:22 +01:00
J. Nick Koston
c4d719a7cf
Use eager_start for background service call tasks ( #111620 )
2024-02-27 12:06:32 -10:00
J. Nick Koston
c399cab427
Small speed up to checking core state ( #107845 )
2024-01-18 08:41:32 -10:00
J. Nick Koston
3a06659120
Speed up single entity/response service calls ( #96729 )
...
* Significantly speed up single entity/response service calls
Since the majority of service calls are single entity, we can
avoid creating tasks in this case. Since the multi-entity
service calls always check the result and raise, we can switch
the asyncio.wait to asyncio.gather
* Significantly speed up single entity/response service calls
Since the majority of service calls are single entity, we can
avoid creating tasks in this case. Since the multi-entity
service calls always check the result and raise, we can switch
the asyncio.wait to asyncio.gather
* revert
* cannot be inside pytest.raises
* one more
* Update homeassistant/helpers/service.py
2023-07-17 09:33:13 +02: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
epenet
0a80ac19bc
Add type hints to integration tests (part 18) ( #88174 )
2023-02-17 18:45:48 +01:00
epenet
c7fc90f8a0
Adjust imports in rflink test_init ( #88177 )
2023-02-15 15:11:22 +01:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 ( #87347 )
2023-02-03 23:08:48 +01:00
Michael
72d3fa6d89
Replace the usage of unit constants by enumerations in Tests [o-r] ( #85936 )
2023-01-15 14:50:24 +01:00
mbo18
6f1208b07f
Add more sensors to SensorEntityDescription for RFLink ( #82036 )
...
* Add more sensors to SensorEntityDescription
* changes from comments
* add device_class precipitation
* fix test
* change state_class for total_rain
2022-11-26 05:40:02 +01:00
javicalle
4dbb265590
Fix RFLink unit conversions ( #79436 )
...
* Fix unit conversions
* Fix tests
* Address requests changes
* Address requests changes
* Address requests changes
* Address requests changes
* migrate to SensorEntityDescription
* forgotten test
* forgotten test
* chango to WIND_SPEED
* manage UOM
* fix test
* address comments
* fix implementation
* prevent from mutate config
2022-10-29 00:20:26 +02:00
epenet
00dd27ef1b
Apply hass-relative-import to tests (i-r) ( #78732 )
2022-09-19 09:46:59 +02:00
J. Nick Koston
fe6a4bfb1d
Remove EVENT_TIME_CHANGED and EVENT_TIMER_OUT_OF_SYNC ( #69643 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2022-04-09 09:05:54 -10:00
javicalle
cd38878a4c
Restore states for RFLink binary_sensors ( #65716 )
2022-02-21 19:11:05 +01:00
Franck Nijhof
60b2cdd069
Allow binary sensor state to be None ( #60193 )
2021-12-22 12:24:29 +01:00
javicalle
75e7104339
A few RFLink tests ( #58544 )
...
* Full coverage for RFLink tests
* use global constants
* extend RFLink keepalive tests
2021-12-15 23:09:54 +02:00
javicalle
668d018e9c
Make Rflink handle set_level command for dimmable devices ( #46499 )
...
* Added handle_event for set_level command in dimmable devices
* refactor common code for dimmable devices
* Force tests
Silly change to force tests execution
* fix super()
* add rflink dim utils
2021-03-21 08:43:38 +01:00
javicalle
99d2d72d13
Update RFLink tests ( #48149 )
2021-03-21 03:27:24 +01:00
javicalle
c8950870a2
Propagate RFLink 'send_command' event ( #43588 )
...
* propagate send_command event
* propagate send_command event
2021-03-18 12:25:00 +01:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
5dac3883b0
Stub light profiles ( #42232 )
2020-10-23 16:28:21 +02:00
Philip Allgaier
dde6305549
Cleanup unused loggers (components N-Z + tests) ( #41982 )
2020-10-16 21:24:08 -05:00
Ville Skyttä
5e90a4d000
Use more state attribute name constants ( #40428 )
2020-09-21 23:03:39 +02:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant ( #39383 )
2020-09-05 21:09:14 +02:00
Ville Skyttä
6ae9399237
Upgrade isort to 5.4.2 ( #37939 )
2020-08-29 08:23:55 +02:00
J. Nick Koston
89a9634d35
Use eventloop for scheduling ( #37184 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2020-06-29 09:39:24 -07:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
tubalainen
d672eed331
Add rflink binary_sensor allon and alloff commands ( #32411 )
...
* added "allon" and "alloff" to the binary_sensor
Ref to the issue: https://github.com/home-assistant/core/issues/32399
* Cosmetic fix
* Fix format
* Update test
Co-authored-by: Erik Montnemery <erik@montnemery.com >
2020-04-17 17:15:04 +02:00
springstan
78d87dc40f
Use TEMP_CELSIUS constant ( #33963 )
2020-04-10 19:17:46 +02:00
springstan
eae21be5b9
Improve string formatting v6 ( #33698 )
2020-04-07 23:14:28 +02:00
Ziv
3697ea7b27
Remove uncaught exceptions from rflink ( #33709 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2020-04-07 09:37:54 -07:00
springstan
67c3a4c970
Improve string formatting v7 ( #33705 )
2020-04-05 17:34:24 -05:00
springstan
f1a0ca7cd3
Add and use percentage constant ( #32094 )
...
* Add and use percentage constant
* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
Paulus Schoutsen
9e7185c676
Write state if schedule update state from async context ( #31758 )
...
* Write state if schedule update state from async context
* Fix most tests
* Fix test and PS4 I/O in event loop
* Fix ps4 better
2020-02-13 10:22:06 -08:00
Paulus Schoutsen
c85a7934ed
Add brightness_step to light.turn_on ( #31452 )
...
* Clean up light turn on service
* Add brightness_step to turn_on schema
* Fix import
* Fix imports 2
* Fix RFLink test
2020-02-04 16:13:29 -08:00
Paulus Schoutsen
01dad31adc
Fix service helper not handling sync methods ( #31254 )
...
* Fix service helper not handling sync methods
* Add legacy support for returning coroutine objects
* Fix tests
* Fix tests
* Convert demo cover to async
2020-01-29 16:27:25 -08:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Ville Skyttä
d6f317c0a9
Remove deprecated rflink configs ( #29972 )
...
They've been deprecated and automatically replaced since July 2017
already, fe6a4b8ae5
2019-12-15 22:57:23 +02:00