Joost Lekkerkerker
5d500cb74b
Use is in enum comparison in config flow tests K-O ( #114672 )
2024-04-02 11:21:42 -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
Aaron Bach
3405bda835
Make sure Notion saves new refresh token upon startup ( #112676 )
...
* Make sure Notion saves new refresh token upon startup
* Code review
* Typing
* Smoother syntax
* Fix tests
* Fix tests for real
2024-03-08 22:27:56 -05:00
Marc Mueller
1722e23df8
Add empty line after module docstring [tests l-p] ( #112710 )
2024-03-08 14:55:15 +01:00
Aaron Bach
e3c838d512
Update Notion auth to store refresh tokens instead of account passwords ( #109670 )
2024-02-12 20:35:06 -07:00
Aaron Bach
edc6e3e2f9
Bump `aionotion` to 2024.02.0 ( #109577 )
2024-02-04 14:35:08 -07:00
Erik Montnemery
6908497c3d
Add minor version to config entries ( #105479 )
2023-12-12 08:44:35 +01:00
Aaron Bach
d16452bed7
Bump `aionotion` to 2023.05.5 ( #93334 )
2023-05-22 10:14:52 +02:00
Aaron Bach
637941df4d
Fix a series of bugs due to Notion API changes ( #93039 )
...
* Fix a series of bugs due to Notion API changes
* Simplify
* Reduce blast radius
* Reduce blast radius
* Fix tests
2023-05-14 12:07:15 -04:00
Aaron Bach
c6d846453d
Bump `aionotion` to 2023.04.2 to address imminent API change ( #91786 )
...
* Bump `aionotion` to 2023.04.0
* Bump `aionotion` to 2023.04.2 to address imminent API change
* Clean migration
* Reduce blast area
* Fix tests
* Better naming
2023-04-21 19:52:57 -04:00
epenet
1fa3f32474
Add missing mock in notion tests ( #88951 )
2023-03-01 09:41:55 +01:00
J. Nick Koston
202bed5d51
Fix lingering reload task in notion reauth ( #88949 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-03-01 09:07:46 +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
epenet
88444b2e0c
Add type hints to integration tests (part 16) ( #88008 )
2023-02-15 10:50:02 +01:00
Franck Nijhof
ef800335fb
Enable Ruff PT022 ( #86792 )
...
* Enable Ruff PT022
* Adjust found cases
2023-01-27 13:57:06 +01:00
Aaron Bach
e7cb3f1979
Renovate Notion config flow tests ( #84906 )
2022-12-31 07:34:59 -07:00
Aaron Bach
ace20782f1
Clean up Notion config flow (and tests) ( #84007 )
...
* Clean up Notion config flow (and tests)
* Code review
2022-12-19 15:03:58 -07:00
Aaron Bach
1cf801afbc
Remove unnecessary session scoping to several test fixtures ( #80500 )
...
Co-authored-by: Joakim Plate <elupus@ecce.se>
2022-10-18 18:06:23 +02:00
Aaron Bach
020b7e9762
Use `entry.as_dict()` in Notion diagnostics ( #80114 )
2022-10-11 19:14:35 +03:00
Aaron Bach
63379bcaff
Remove redundant Notion test fixture ( #79910 )
2022-10-08 15:06:32 -06:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
Aaron Bach
3a978fc244
Clean up post-merge review comments ( #64842 )
...
* Clean up post-merge diagnostics PRs
* Trigger Build
* Linting
2022-01-24 08:46:22 -07:00
Aaron Bach
b54722952c
Add diagnostics to Notion ( #64713 )
2022-01-24 08:15:45 -07:00
Aaron Bach
c3ccc76eb1
Clean up Notion config tests ( #64669 )
2022-01-23 10:18:54 +01:00
Aaron Bach
0ea5f25594
Add ability to re-auth Notion ( #55616 )
2021-09-24 11:23:19 -07:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Aaron Bach
244bfb2096
Deprecate YAML config for Notion (0.119 removal) ( #43026 )
2020-11-09 23:47:38 -06:00
SNoof85
c7027e2828
Use reference strings in Notion ( #41211 )
2020-10-05 15:13:37 +02:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Paulus Schoutsen
0d700f6a63
Fix tests for Python 3.8 ( #34672 )
2020-04-25 14:32:55 -07:00
Aaron Bach
c97b1c60b0
Modernize Notion config flow ( #32167 )
...
* Modernize Notion config flow
* Linting
2020-02-24 21:36:58 -08:00
Bas Nijholt
1ab1808307
Sort imports according to PEP8 for components starting with "N" ( #29773 )
2019-12-09 14:46:24 +01:00
springstan
6af30bc232
Move imports to top for notion ( #29539 )
...
* Move imports to top for notion
* Fix mocking library in test_config_flow.py
2019-12-06 12:40:00 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Aaron Bach
c2e843cbc3
Add support for Notion Home Monitoring ( #24634 )
...
* Add support for Notion Home Monitoring
* Updated coverage
* Removed auto-generated translations
* Stale docstrings
* Corrected hardware version
* Fixed binary sensor representation
* Cleanup and update protection
* Updated log message
* Cleaned up is_on
* Updated docstring
* Modified which data is updated during async_update
* Added more checks during update
* More cleanup
* Fixed unhandled exception
* Owner-requested changes (round 1)
* Fixed incorrect scan interval retrieval
* Ugh
* Removed unnecessary import
* Simplified everything via dict lookups
* Ensure bridges are properly registered
* Fixed tests
* Added catch for invalid credentials
* Ensure bridge ID is updated as necessary
* Updated method name
* Simplified bridge update
* Add support for updating bridge via_device_id
* Device update guard clause
* Removed excess whitespace
* Whitespace
* Owner comments
* Member comments
2019-07-09 10:29:06 +02:00