Commit graph

38 commits

Author SHA1 Message Date
Erik Montnemery
d6ee10a543
Make FlowHandler.context a typed dict (#126291)
* Make FlowHandler.context a typed dict

* Adjust typing

* Adjust typing

* Avoid calling ConfigFlowContext constructor in hot path
2024-10-08 12:18:45 +02:00
Erik Montnemery
252ce2c95b
Improve FlowManager.async_finish_flow docstring (#126178)
* Improve FlowManager.async_finish_flow docstring

* Fix typos
2024-09-18 18:19:13 +02:00
epenet
97f6b578c8
Enforce namespace import in core (#118235) 2024-05-27 14:03:00 +02:00
Marc Mueller
a033574ee2
Add empty line after module docstring [r] (#112703) 2024-03-08 15:05:07 +01:00
J. Nick Koston
f3a9756f81
Avoid waiting for integration platforms in the parent integration (#112467) 2024-03-05 21:16:42 -10:00
Erik Montnemery
3d3e9900c3
Add TypeVar default for FlowResult (#112345)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2024-03-05 22:52:11 +01:00
Erik Montnemery
e0c1feb22c
Migrate integrations n-r to generic flowhandler (#111864) 2024-02-29 20:09:01 +01:00
Erik Montnemery
a0e558c457
Add generic classes BaseFlowHandler and BaseFlowManager (#111814)
* Add generic classes BaseFlowHandler and BaseFlowManager

* Migrate zwave_js

* Update tests

* Update tests

* Address review comments
2024-02-29 16:52:39 +01:00
J. Nick Koston
0d4c82b54d
Convert Integration platforms processors where nothing is awaited to callbacks (#110825)
Convert Integration platforms processors where nothing is awaited callbacks
2024-02-17 20:49:47 -05:00
Erik Montnemery
ffdcdaf43b
Create issues for reauth flows (#109105) 2024-01-31 15:05:52 +01:00
J. Nick Koston
bcb9a10d5a
Speed up listing issues via the repairs websocket api (#109149) 2024-01-30 09:57:08 -10:00
Robert Resch
b0f68f1ef3
Use @require_admin decorator (#98061)
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2023-08-14 15:07:20 +02:00
Erik Montnemery
8896b27f70
Add empty config schema to integrations p-s (#93700) 2023-05-29 20:57:18 +02:00
Erik Montnemery
5dfb9cddd6
Sort manifests 8 (#87029) 2023-02-08 20:13:46 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
Erik Montnemery
5fdf78ed30
Drop title from repairs flows (2) (#85597) 2023-01-10 12:11:30 +01:00
Erik Montnemery
bf4c399b19
Improve data entry flow typing (#84030) 2022-12-15 12:41:20 +01:00
Joakim Sørensen
621068211f
Do not delete issue when aborting repairs fix flow (#82593)
* Do not delete issue when aborting repairs fix flow

* lint

* types
2022-11-24 08:21:54 +01:00
Joakim Sørensen
3738135e0b
Add helper to access RepairsFlowManager (#82567)
async_external_step
2022-11-23 12:00:38 +01:00
epenet
2c43606922
Add websocket type hints in components (#80654)
* Add websocket type hints in components

* Adjust

* Apply suggestion

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-10-20 13:41:14 +02:00
Marc Mueller
d78c2a31a1
Update pylint to 2.15.4 (#80612) 2022-10-20 08:59:06 +02:00
Franck Nijhof
2b27cfdabb
Set system & entity integration types (#79593) 2022-10-04 10:36:42 -04:00
Teemu R
a5c9c1880a
Add missing quality scales for internal integrations (#76499) 2022-09-28 13:46:20 +02:00
Erik Montnemery
2e3a2d29e5
Finish update of integrations to import issue_registry from helpers (#77473) 2022-08-29 09:52:17 -04:00
Erik Montnemery
c741d9d045
Update integrations to import issue_registry from helpers (#77305)
* Update integrations to import issue_registry from helpers

* Update tests
2022-08-25 15:33:05 +02:00
Erik Montnemery
dfed3ba75e
Move issue_registry to homeassistant.helpers (#77299)
* Move issue_registry to homeassistant.helpers

* Add backwards compatibility
2022-08-25 11:32:06 +02:00
Erik Montnemery
a79f578b1d
Add issue_domain parameter to repairs.create_issue (#76972) 2022-08-18 12:45:24 +02:00
Aaron Bach
759503f863
Ensure ConfirmRepairFlow can make use of translation placeholders (#76336)
* Ensure ConfirmRepairFlow can make use of translation placeholders

* Automatically determine the issue

* Fix tests

* Update homeassistant/components/repairs/issue_handler.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-08-08 16:46:48 -06:00
Erik Montnemery
9aa8838479
Allow storing arbitrary data in repairs issues (#76288) 2022-08-05 13:16:29 +02:00
Erik Montnemery
b366090175
Allow creating fixable repairs issues without flows (#76224)
* Allow creating fixable repairs issues without flows

* Add test

* Adjust test
2022-08-05 12:07:51 +02:00
Erik Montnemery
3b29cbcd61
Support creating persistent repairs issues (#76211) 2022-08-05 10:11:20 +02:00
Paulus Schoutsen
b0f877eca2
Add issue_domain to repairs (#75839) 2022-07-27 22:53:51 +02:00
Franck Nijhof
0ff34f232c
Add events to repairs issue registry changes (#75784) 2022-07-26 22:42:19 +02:00
Marc Mueller
b1ed1543c8
Improve http decorator typing (#75541) 2022-07-21 13:07:42 +02:00
Franck Nijhof
baeb55e313
Add sync methods for create/deleting issues in repairs (#75557) 2022-07-21 11:11:51 +02:00
Erik Montnemery
c861259749
Hide inactive repairs issues (#75556) 2022-07-21 10:56:53 +02:00
Franck Nijhof
3920844dca
Adjust repairs re-exports (#75492) 2022-07-20 14:00:35 +02:00
Franck Nijhof
39dc9aa179
Rename Resolution Center -> Repairs (#75486) 2022-07-20 12:06:52 +02:00