diff --git a/custom_components/cz_pub_tran/__init__.py b/custom_components/cz_pub_tran/__init__.py index 981106b..7f2b023 100644 --- a/custom_components/cz_pub_tran/__init__.py +++ b/custom_components/cz_pub_tran/__init__.py @@ -35,7 +35,7 @@ from homeassistant.helpers.entity import Entity, async_generate_entity_id import asyncio from homeassistant.helpers.event import async_call_later -# from integrationhelper.const import CC_STARTUP_VERSION +from integrationhelper.const import CC_STARTUP_VERSION _LOGGER = logging.getLogger(__name__) @@ -106,9 +106,9 @@ async def async_setup_entry(hass, config_entry): hass.async_create_task(hass.config_entries.async_remove(config_entry.entry_id)) return False # Print startup message - # _LOGGER.info( - # CC_STARTUP_VERSION.format(name=DOMAIN, version=VERSION, issue_link=ISSUE_URL) - # ) + _LOGGER.info( + CC_STARTUP_VERSION.format(name=DOMAIN, version=VERSION, issue_link=ISSUE_URL) + ) config_entry.options = config_entry.data config_entry.add_update_listener(update_listener) # Add sensor diff --git a/custom_components/cz_pub_tran/manifest.json b/custom_components/cz_pub_tran/manifest.json index d400fc5..9f15042 100644 --- a/custom_components/cz_pub_tran/manifest.json +++ b/custom_components/cz_pub_tran/manifest.json @@ -2,7 +2,14 @@ "domain": "cz_pub_tran", "name": "CZ Public Transport", "documentation": "https://github.com/bruxy70/CZ-Public-Transport/", - "requirements": ["czpubtran>=0.1.21"], + "requirements": [ + "asyncio", + "czpubtran>=0.1.23", + "datetime", + "integrationhelper", + "uuid", + "voluptuous" + ], "config_flow": true, "dependencies": [], "codeowners": ["@bruxy70"] diff --git a/custom_components/cz_pub_tran/sensor.py b/custom_components/cz_pub_tran/sensor.py index 1bab362..40e3052 100644 --- a/custom_components/cz_pub_tran/sensor.py +++ b/custom_components/cz_pub_tran/sensor.py @@ -34,7 +34,6 @@ from homeassistant.core import HomeAssistant, State from homeassistant.helpers.entity import Entity, async_generate_entity_id import asyncio -from homeassistant.helpers.event import async_call_later _LOGGER = logging.getLogger(__name__)