mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
moved imports to top level (#27511)
This commit is contained in:
parent
d58717d772
commit
712628395e
@ -1,4 +1,5 @@
|
||||
"""Support for launching a web browser on the host machine."""
|
||||
import webbrowser
|
||||
import voluptuous as vol
|
||||
|
||||
ATTR_URL = "url"
|
||||
@ -18,7 +19,6 @@ SERVICE_BROWSE_URL_SCHEMA = vol.Schema(
|
||||
|
||||
def setup(hass, config):
|
||||
"""Listen for browse_url events."""
|
||||
import webbrowser
|
||||
|
||||
hass.services.register(
|
||||
DOMAIN,
|
||||
|
Loading…
x
Reference in New Issue
Block a user