Franck Nijhof
a4fa0925b7
Small improvement to Withings tests ( #86937 )
2023-01-30 11:03:42 +01:00
Franck Nijhof
57cf11f067
Enable Ruff PT015 ( #86775 )
2023-01-27 11:10:29 +01:00
Franck Nijhof
62dcbe5258
Enable Ruff PT001 ( #86730 )
2023-01-26 18:05:05 +01:00
epenet
30bf0634fe
Add per-file-ignore to pylint ( #86289 )
2023-01-22 17:26:24 +01:00
Franck Nijhof
79b52a2b41
Stricter pylint message control ( #86154 )
2023-01-20 13:47:55 +01:00
epenet
1af72e3671
Add device class to withings ( #84103 )
2022-12-16 20:04:07 +01:00
epenet
f5a8ce4aca
Split platform attributes in withings ( #84099 )
2022-12-16 15:35:03 +01:00
epenet
14ee3f1ddc
Move unused function in withings ( #84089 )
...
* Remove unused function in withings
* Move to tests
* Remove reference to attribute.platform
* Move WITHINGS_MEASUREMENTS_MAP to tests
* measute_type > measure_type
* One more
2022-12-16 10:50:20 +01:00
Joakim Plate
8bd4125390
Test corrections noticed during pytest upgrade ( #82579 )
...
* Withing trigger a call to coordinator after init
* Stop discovery task on STOP event
* Stop dsmr connection task on STOP
* Use autospec in modem_serial tests
close on AioSerial is non async, and should not be mocked as a coroutine
* Make sure responder is specced correctly
tests/components/emulated_hue/test_init.py::test_setup_works
/Users/joakim/src/hass/home-assistant/homeassistant/components/emulated_hue/__init__.py:119: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
protocol.close()
* Don't assume Pymodbus is the only thing logging
* Use gather instead of wait
```
homeassistant/components/homeassistant/__init__.py:208: DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11.
```
* Increase wait time for automation tests
Assuming exit within 1 seconds is unreasonable on a potentially loaded
test machine.
* Avoid changing app state after startup
2022-11-23 20:53:28 +01:00
Franck Nijhof
d8a15f3dda
Fix Withings authentication to leverage default redirect URI ( #79158 )
2022-09-27 13:22:52 -04:00
epenet
e9f55f4e54
Apply hass-relative-import to tests (s-z) ( #78733 )
2022-09-19 09:51:31 +02:00
epenet
ce353460b3
Fix Withings re-authentication flow ( #74961 )
2022-07-11 14:27:54 +02:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
Allen Porter
39ce25f76d
Add Withings application_credentials platform ( #71990 )
...
* Add Withings application_credentials platform
* Update withings auth implementation
2022-05-22 14:30:57 -07:00
Nenad Bogojevic
1a878b4024
Use new withings oauth2 refresh token endpoint ( #65134 )
2022-01-28 08:48:16 -08:00
Robert Hillis
0c82a3c7b0
Use platform enums in withings tests ( #62551 )
2021-12-21 20:37:17 -08:00
Ville Skyttä
0de95610e3
Use http.HTTPStatus in components/[wxyz]* ( #58330 )
2021-10-24 17:25:01 +02:00
Erik Montnemery
43b5dcff76
Use hass_client_no_auth test fixture in withings tests ( #56337 )
2021-09-18 23:12:02 +02:00
Ville Skyttä
470f2dd73f
Upgrade pyupgrade to 2.21.2, apply its changes ( #52987 )
2021-07-19 10:46:09 +02:00
J. Nick Koston
bf2d40adfe
Migrate from pytz to python-dateutil ( #49643 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-05-07 22:46:26 -07:00
Ville Skyttä
153d6e891e
Use config_entries.SOURCE_* constants ( #49631 )
2021-04-25 11:27:40 +02:00
Franck Nijhof
f0e5e616a7
Fix device discovery of OAuth2 config flows ( #48326 )
2021-03-25 10:35:01 -07:00
Marc Mueller
54d1e9985f
Update typing 15 ( #48079 )
2021-03-18 15:13:22 +01:00
Erik Montnemery
b3fecb1c95
Update tests t-z to use async_get() instead of async_get_registry() ( #47655 )
2021-03-09 14:25:03 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
f9fa24950b
OAuth2 to use current request header ( #43668 )
2020-11-27 08:55:34 +01:00
scheric
f5248b5562
Use common strings in withings config flow ( #41770 )
2020-10-14 21:54:23 +02:00
SNoof85
04b04027c3
Use reference strings in Withings ( #41345 )
2020-10-07 11:22:11 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Robert Van Gorkom
c913d17913
Add bed sensor availability for withings ( #37906 )
2020-08-02 09:36:14 -05:00
Paulus Schoutsen
0c771f1c42
Replace asynctest with tests.async_mock ( #37428 )
2020-07-03 11:29:35 -07:00
Robert Van Gorkom
a7cf76491b
Fix withings bug that grabbed oldest value instead of the newest ( #37362 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-07-02 13:09:49 -07:00
Erik Montnemery
4e77969f5e
Drop use of mock_mqtt_component ( #37013 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-06-23 10:17:22 -07:00
Robert Van Gorkom
5446641f09
User defined profile name for Withings ( #36864 )
2020-06-22 17:55:41 +02:00
Robert Van Gorkom
a6a6a7b69c
Add Withings webhooks ( #34447 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-06-16 20:16:18 +02:00
Robert Van Gorkom
fcef259021
Prefer use cloud url for oauth2 for Withings ( #36348 )
2020-06-03 12:40:46 +02:00
Quentame
1855c91988
Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const ( #36233 )
...
* Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const
* Fix pylint
* Use in tests
* Search for "client_id"
* Fix tests
* Fix test
* Fix test
2020-05-30 17:27:20 +02:00
Franck Nijhof
2223592486
Add get_url helper, deprecate base_url ( #35224 )
2020-05-08 02:29:47 +02: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
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Robert Van Gorkom
ea709d0630
Remove withings sleep state ( #33817 )
2020-04-08 11:57:42 -07:00
springstan
67c3a4c970
Improve string formatting v7 ( #33705 )
2020-04-05 17:34:24 -05:00
springstan
ed71683488
Improve string formatting ( #33643 )
2020-04-04 20:17:11 +02:00
Franck Nijhof
c0c5c33b20
Fix Withings timezone test ( #32602 )
2020-03-09 13:45:39 +01:00
Robert Van Gorkom
672db9cfe9
Fixing unit of measure for withings hydration. Fixes #30570 ( #30685 )
2020-01-11 20:58:06 -05:00
Ville Skyttä
5216477353
Be consistent with Home Assistant and Hass.io spelling ( #30500 )
...
* Be consistent with Home Assistant spelling
* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
Ville Skyttä
fa4fa30461
Various string cleanups ( #30435 )
...
* Remove some unnecessary string concatenations
* Replace some simple str.formats with f-strings
* Replace some string concatenations with f-strings
2020-01-03 14:47:06 +01:00
Franck Nijhof
2620a95944
Improve Withings tests in different time zone ( #30326 )
...
* Improve Withings tests in different time zone
* Address code review comment
* Spelling error in code doc
2019-12-31 11:10:39 -05:00
Franck Nijhof
5414e9d155
Fix Withings leaking time zone change into other tests ( #30320 )
...
* Fix Withings leaking time zone change in other tests
* Fix spelling error in code doc
2019-12-31 14:30:09 +01:00
Robert Van Gorkom
08af989658
Fixing timezone issue which caused wrong selection of data to be used. ( #30011 )
2019-12-28 21:25:37 +01:00