1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Clean up Launch Library consts (#64420)

This commit is contained in:
Joakim Sørensen
2022-01-19 09:52:22 +01:00
committed by GitHub
parent f1435b1385
commit b82a57d861
3 changed files with 29 additions and 68 deletions

View File

@@ -2,7 +2,8 @@
from unittest.mock import patch
from homeassistant import data_entry_flow
from homeassistant.components.launch_library.const import DEFAULT_NAME, DOMAIN
from homeassistant.components.launch_library.const import DOMAIN
from homeassistant.components.launch_library.sensor import DEFAULT_NEXT_LAUNCH_NAME
from homeassistant.config_entries import SOURCE_IMPORT, SOURCE_USER
from homeassistant.const import CONF_NAME
@@ -12,7 +13,7 @@ from tests.common import MockConfigEntry
async def test_import(hass):
"""Test entry will be imported."""
imported_config = {CONF_NAME: DEFAULT_NAME}
imported_config = {CONF_NAME: DEFAULT_NEXT_LAUNCH_NAME}
with patch(
"homeassistant.components.launch_library.async_setup_entry", return_value=True