home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.03k stars 28.27k forks source link

Enable config flow for html5 #112806

Open alexyao2015 opened 2 months ago

alexyao2015 commented 2 months ago

Breaking change

Proposed change

This converts HTML5 to use config flow. In the process, this also removes the need for the user to manually obtain a VAPID key as it is now automatically generated.

This also removes the long deprecated GCM configuration method.

Type of change

Additional information

Checklist

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

To help with the load of incoming pull requests:

alexyao2015 commented 3 weeks ago

The get_service call just got converted to an async function. https://github.com/home-assistant/core/pull/116068

bdraco commented 3 weeks ago

Its not thread-safe to call hass.http.register_view or hass.services.async_register in the executor. It should have been an an async function all along

sdb9696 commented 3 weeks ago

Its not thread-safe to call hass.http.register_view or hass.services.async_register in the executor. It should have been an an async function all along

Ah ok, my bad I didn't know that, thanks @bdraco. This is all good from me, thanks @alexyao2015!

bdraco commented 6 days ago

testing....

Screenshot 2024-05-12 at 2 10 41 PM Screenshot 2024-05-12 at 2 10 57 PM
bdraco commented 6 days ago
Screenshot 2024-05-12 at 2 16 52 PM

dismiss service is there

bdraco commented 6 days ago

notify.html5 service is missing though

alexyao2015 commented 3 days ago

Issue is fixed

bdraco commented 3 days ago

I did some testing. Some observations: