mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Clean up google travel time code (#48708)
This commit is contained in:
parent
2555b10d49
commit
caaa62a7f9
@ -7,11 +7,6 @@ from homeassistant.core import HomeAssistant
|
|||||||
PLATFORMS = ["sensor"]
|
PLATFORMS = ["sensor"]
|
||||||
|
|
||||||
|
|
||||||
async def async_setup(hass: HomeAssistant, config: dict):
|
|
||||||
"""Set up the Google Maps Travel Time component."""
|
|
||||||
return True
|
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
||||||
"""Set up Google Maps Travel Time from a config entry."""
|
"""Set up Google Maps Travel Time from a config entry."""
|
||||||
for component in PLATFORMS:
|
for component in PLATFORMS:
|
||||||
|
@ -31,8 +31,6 @@ def validate_config_entry_fixture():
|
|||||||
def bypass_setup_fixture():
|
def bypass_setup_fixture():
|
||||||
"""Bypass entry setup."""
|
"""Bypass entry setup."""
|
||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.google_travel_time.async_setup", return_value=True
|
|
||||||
), patch(
|
|
||||||
"homeassistant.components.google_travel_time.async_setup_entry",
|
"homeassistant.components.google_travel_time.async_setup_entry",
|
||||||
return_value=True,
|
return_value=True,
|
||||||
):
|
):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user