diff --git a/belgiantrain/__init__.py b/custom_components/belgiantrain/__init__.py similarity index 99% rename from belgiantrain/__init__.py rename to custom_components/belgiantrain/__init__.py index b083f44..c8282ab 100644 --- a/belgiantrain/__init__.py +++ b/custom_components/belgiantrain/__init__.py @@ -18,7 +18,6 @@ # TODO Update entry annotation async def async_setup_entry(hass: HomeAssistant, entry: New_NameConfigEntry) -> bool: """Set up SNCB/NMBS from a config entry.""" - # TODO 1. Create API instance # TODO 2. Validate the API connection (and authentication) # TODO 3. Store an API object for your platforms to access diff --git a/belgiantrain/config_flow.py b/custom_components/belgiantrain/config_flow.py similarity index 96% rename from belgiantrain/config_flow.py rename to custom_components/belgiantrain/config_flow.py index e53c42d..64aada4 100644 --- a/belgiantrain/config_flow.py +++ b/custom_components/belgiantrain/config_flow.py @@ -6,7 +6,6 @@ from typing import Any import voluptuous as vol - from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME from homeassistant.core import HomeAssistant @@ -27,7 +26,8 @@ class PlaceholderHub: - """Placeholder class to make tests pass. + """ + Placeholder class to make tests pass. TODO Remove this placeholder class and replace with things from your PyPI package. """ @@ -42,7 +42,8 @@ async def authenticate(self, username: str, password: str) -> bool: async def validate_input(hass: HomeAssistant, data: dict[str, Any]) -> dict[str, Any]: - """Validate the user input allows us to connect. + """ + Validate the user input allows us to connect. Data has the keys from STEP_USER_DATA_SCHEMA with values provided by the user. """ diff --git a/belgiantrain/const.py b/custom_components/belgiantrain/const.py similarity index 100% rename from belgiantrain/const.py rename to custom_components/belgiantrain/const.py diff --git a/belgiantrain/manifest.json b/custom_components/belgiantrain/manifest.json similarity index 61% rename from belgiantrain/manifest.json rename to custom_components/belgiantrain/manifest.json index 122ba2f..83b5da0 100644 --- a/belgiantrain/manifest.json +++ b/custom_components/belgiantrain/manifest.json @@ -1,19 +1,15 @@ { "domain": "belgiantrain", "name": "SNCB/NMBS", - "version": "0.1.0", "codeowners": [ "@tjorim" ], "config_flow": true, - "dependencies": [], - "documentation": "https://www.home-assistant.io/integrations/belgiantrain", - "homekit": {}, + "documentation": "https://github.com/tjorim/belgiantrain", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/tjorim/belgiantrain/issues", "requirements": [ "pyrail==0.1.0" ], - "ssdp": [], - "zeroconf": [] + "version": "0.1.0" } \ No newline at end of file diff --git a/belgiantrain/quality_scale.yaml b/custom_components/belgiantrain/quality_scale.yaml similarity index 100% rename from belgiantrain/quality_scale.yaml rename to custom_components/belgiantrain/quality_scale.yaml diff --git a/belgiantrain/strings.json b/custom_components/belgiantrain/strings.json similarity index 100% rename from belgiantrain/strings.json rename to custom_components/belgiantrain/strings.json diff --git a/custom_components/integration_blueprint/translations/en.json b/custom_components/belgiantrain/translations/en.json similarity index 100% rename from custom_components/integration_blueprint/translations/en.json rename to custom_components/belgiantrain/translations/en.json diff --git a/custom_components/integration_blueprint/manifest.json b/custom_components/integration_blueprint/manifest.json deleted file mode 100644 index 9905e53..0000000 --- a/custom_components/integration_blueprint/manifest.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "domain": "integration_blueprint", - "name": "Integration blueprint", - "codeowners": [ - "@ludeeus" - ], - "config_flow": true, - "documentation": "https://github.com/ludeeus/integration_blueprint", - "iot_class": "cloud_polling", - "issue_tracker": "https://github.com/ludeeus/integration_blueprint/issues", - "version": "0.1.0" -} \ No newline at end of file