Skip to content

Commit

Permalink
Refactor directory structure and update manifest for SNCB/NMBS integr…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
tjorim committed Jan 3, 2025
1 parent eba4faf commit 04f5dea
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
"""
Expand All @@ -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.
"""
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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"
}
File renamed without changes.
File renamed without changes.
12 changes: 0 additions & 12 deletions custom_components/integration_blueprint/manifest.json

This file was deleted.

0 comments on commit 04f5dea

Please sign in to comment.