Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/FaserF/ha-db_infoscreen
/ functions
Functions
338 in github.com/FaserF/ha-db_infoscreen
⨍
Functions
338
◇
Types & classes
29
↳
Endpoints
13
↓ 36 callers
Method
_get_config_value
Get value from our updated options or fall back to config data.
custom_components/db_infoscreen/config_flow.py:1024
↓ 31 callers
Method
_async_update_data
Retrieve and process next departures for the configured station.
custom_components/db_infoscreen/__init__.py:691
↓ 31 callers
Function
patch_session
Patch the async_get_clientsession to return a mock session with data.
tests/common.py:9
↓ 13 callers
Method
async_step_user
Handle the first step: Server Selection.
custom_components/db_infoscreen/config_flow.py:229
↓ 11 callers
Function
normalize_whitespace
Remove double spaces and leading/trailing whitespace. Returns an empty string if value is None.
custom_components/db_infoscreen/utils.py:23
↓ 9 callers
Method
async_step_details
Handle the configuration details step for verified stations. Prompts for common settings like update interval and whether to
custom_components/db_infoscreen/config_flow.py:504
↓ 8 callers
Method
async_step_station_search
Handle the station search step.
custom_components/db_infoscreen/config_flow.py:321
↓ 7 callers
Function
find_station_matches
Find matches for the query in the station list. Returns a list of matching station names. Priority: Exact -> StartsWith -> Contains -> Fu
custom_components/db_infoscreen/utils.py:302
↓ 6 callers
Method
_async_save_options
Update options and the entry title before saving.
custom_components/db_infoscreen/config_flow.py:975
↓ 6 callers
Method
_get_events_from_departures
Convert departure data to calendar events.
custom_components/db_infoscreen/calendar.py:79
↓ 6 callers
Function
async_get_station_candidates
Fetch station candidates from DBF backend.
custom_components/db_infoscreen/utils.py:349
↓ 6 callers
Method
async_refresh
(self)
tests/conftest.py:126
↓ 6 callers
Method
details_schema
Build the voluptuous Schema used for the integration's details form. Does NOT include CONF_STATION as that is already selected.
custom_components/db_infoscreen/config_flow.py:810
↓ 5 callers
Method
__init__
Initialize the binary sensor.
custom_components/db_infoscreen/binary_sensor.py:67
↓ 4 callers
Method
_get_stats
Calculate statistics from history.
custom_components/db_infoscreen/sensor.py:591
↓ 4 callers
Method
_manual_config_schema
Schema for manual entry configuration with Data Source prominent.
custom_components/db_infoscreen/config_flow.py:597
↓ 4 callers
Method
_update_history
Update the 24-hour departure history for punctuality statistics. Records the final seen status (delay, cancellation) for each train
custom_components/db_infoscreen/__init__.py:1808
↓ 4 callers
Method
async_step_choose
Handle the selection step if multiple stations or no matches were found. Allows the user to select from a list of matches or proceed
custom_components/db_infoscreen/config_flow.py:438
↓ 4 callers
Function
flatten_json
Flatten a nested json dict, handling lists as well.
tests/test_translations.py:70
↓ 4 callers
Function
get_formatted_item
( display: str, hashes: list, repo: str, commit_authors: dict )
scripts/generate_changelog.py:123
↓ 4 callers
Function
normalize_data_source
Normalize legacy data source values to descriptive keys.
custom_components/db_infoscreen/const.py:133
↓ 4 callers
Function
parse_datetime_flexible
Parse a datetime from various formats (timestamp, ISO, HH:MM). Standardizes parsing logic used across the integration.
custom_components/db_infoscreen/utils.py:33
↓ 3 callers
Method
__init__
Initialize the sensor.
custom_components/db_infoscreen/sensor.py:33
↓ 3 callers
Method
_async_create_db_entry
Finalize the entry creation and save to Home Assistant.
custom_components/db_infoscreen/config_flow.py:654
↓ 3 callers
Method
_async_get_addon_manager
Return the addon manager.
custom_components/db_infoscreen/config_flow.py:883
↓ 3 callers
Method
_check_watched_trips
Check for important updates on watched trains and send notifications.
custom_components/db_infoscreen/__init__.py:1624
↓ 3 callers
Method
_compute_issues
Parse departures for relevant elevator issues.
custom_components/db_infoscreen/binary_sensor.py:298
↓ 3 callers
Function
_enable_socket_temporarily
Bypass pytest-socket blocking during these tests.
tests/test_live_api.py:23
↓ 3 callers
Method
_get_filtered_departures
Filter out departures based on time and sensor-specific settings. Also applies filtering for platforms, direction, and via stations.
custom_components/db_infoscreen/sensor.py:96
↓ 3 callers
Function
async_get_stations
Download and parse the station list from DBF. Check hass.data for cached list first. Refreshes cache if older than 24 hours.
custom_components/db_infoscreen/utils.py:199
↓ 3 callers
Method
async_step_advanced
Handle advanced configuration options. Prompts for filters like train types, route keeping, and custom API URLs.
custom_components/db_infoscreen/config_flow.py:618
↓ 3 callers
Function
async_validate_station_on_url
Validate that the station can be reached with the given data source on the specified server URL. Returns {"valid": True} or {"valid": False,
custom_components/db_infoscreen/config_flow.py:91
↓ 3 callers
Function
create_flow
Create a ConfigFlow instance with mocked base methods.
tests/test_config_flow_search.py:18
↓ 2 callers
Method
_async_prefill_addon_info
Pre-fill addon info from Supervisor.
custom_components/db_infoscreen/config_flow.py:913
↓ 2 callers
Method
_get_next_departure
Get the next non-cancelled departure.
custom_components/db_infoscreen/sensor.py:497
↓ 2 callers
Method
_get_watchdog_data
Calculate watchdog data from the first departure.
custom_components/db_infoscreen/sensor.py:390
↓ 2 callers
Method
_handle_update_error
Register a data fetch error and check for stale data issues.
custom_components/db_infoscreen/__init__.py:1903
↓ 2 callers
Method
_validate_station
Validate that the station can be reached with the given data source. Returns {"valid": True} or {"valid": False, "error": "descriptio
custom_components/db_infoscreen/config_flow.py:863
↓ 2 callers
Function
async_get_autocomplete_path
Dynamically discover the autocomplete.js path from the server's homepage HTML.
custom_components/db_infoscreen/utils.py:110
↓ 2 callers
Function
async_setup_entry
Set up a DBInfoSensor entity for the given config entry.
custom_components/db_infoscreen/sensor.py:634
↓ 2 callers
Function
async_verify_server
Verify that a server is reachable and specifically a DBF instance.
custom_components/db_infoscreen/utils.py:155
↓ 2 callers
Method
convert_offset_to_seconds
Converts an offset string in HH:MM or HH:MM:SS format to seconds.
custom_components/db_infoscreen/__init__.py:602
↓ 2 callers
Function
create_mock_response
( status: int, content_type: str, text: str | None = None, json_data: dict | N
tests/test_station_candidates.py:92
↓ 2 callers
Function
create_mock_response
(data)
tests/common.py:13
↓ 2 callers
Method
format_departure_time
Format a departure time using centralized robust parsing.
custom_components/db_infoscreen/sensor.py:79
↓ 2 callers
Function
generate_readme_content
Generate the categorized README content for Data Sources.
scripts/update_backends.py:180
↓ 2 callers
Function
migrate_dict
(d: dict[str, Any])
custom_components/db_infoscreen/__init__.py:337
↓ 2 callers
Function
parse_dbf_multiple_choices
Parse the HTML of a 300 Multiple Choices page from DBF.
custom_components/db_infoscreen/utils.py:489
↓ 1 callers
Function
_generate_entry_title
Generate a title for the config entry based on current settings.
custom_components/db_infoscreen/config_flow.py:71
↓ 1 callers
Method
_get_advanced_schema
Get the schema for advanced options.
custom_components/db_infoscreen/config_flow.py:832
↓ 1 callers
Method
_get_train_departure_at_station
Fetch departure/arrival information for a specific train at a different station. Used for connection tracking to see if a connecting
custom_components/db_infoscreen/__init__.py:1744
↓ 1 callers
Function
_mock_response
Create a minimal async context manager response.
tests/test_coordinator.py:21
↓ 1 callers
Method
_parse_departure_time
Parse departure time using centralized logic.
custom_components/db_infoscreen/calendar.py:210
↓ 1 callers
Method
_process_wagon_order
Process the wagon order list and return a structured dictionary. Returns: { "text": "1. Klasse: A-B | Bor
custom_components/db_infoscreen/__init__.py:618
↓ 1 callers
Method
_validate_server_url
Verify that the server is reachable and looks like a DBF instance.
custom_components/db_infoscreen/config_flow.py:872
↓ 1 callers
Method
async_config_entry_first_refresh
(self)
tests/conftest.py:123
↓ 1 callers
Method
async_fetch_server_version
Fetch server version from the API.
custom_components/db_infoscreen/__init__.py:574
↓ 1 callers
Function
async_refresh_departures
(service_call)
tests/test_feature_updates.py:88
↓ 1 callers
Method
async_step_change_source
Allow user to change the data source.
custom_components/db_infoscreen/repairs.py:265
↓ 1 callers
Method
async_step_change_source
Allow user to change the data source.
custom_components/db_infoscreen/repairs.py:354
↓ 1 callers
Method
async_step_hassio
Handle Hass.io discovery.
custom_components/db_infoscreen/config_flow.py:892
↓ 1 callers
Method
async_step_hassio_confirm
Confirm installation of the official addon.
custom_components/db_infoscreen/config_flow.py:935
↓ 1 callers
Method
async_step_init
Handle the options flow menu. Displays a list of configuration categories for the user to select.
custom_components/db_infoscreen/config_flow.py:1045
↓ 1 callers
Method
async_step_manual_config
Handle configuration for manually entered (non-IRIS) stations. Prompts for a data source (e.g., ÖBB, SBB) and configuration for
custom_components/db_infoscreen/config_flow.py:544
↓ 1 callers
Function
check_schema
(obj, trace="")
tests/test_translations.py:323
↓ 1 callers
Function
check_server_status
Check if dbf.fabiseitz.de is reachable and returns valid data.
tests/test_live_api.py:47
↓ 1 callers
Method
extract_anchors
Extract all possible anchor IDs from markdown files.
tests/test_docs_links.py:32
↓ 1 callers
Function
extract_data
(html_content)
scripts/update_backends.py:79
↓ 1 callers
Function
fetch_backends
()
scripts/update_backends.py:67
↓ 1 callers
Function
flatten
(x, name="")
tests/test_translations.py:74
↓ 1 callers
Function
get_all_markdown_files
Get all markdown files in the docs directory.
tests/test_docs_links.py:10
↓ 1 callers
Function
get_norm_key
(msg: str)
scripts/generate_changelog.py:107
↓ 1 callers
Function
get_shortname
Extract shortname (e.g. 'AVV' from 'AVV – Aachener Verkehrsverbund')
scripts/update_backends.py:120
↓ 1 callers
Function
main
()
scripts/generate_changelog.py:156
↓ 1 callers
Function
prune_response_cache
Remove expired entries from the global response cache.
custom_components/db_infoscreen/utils.py:87
↓ 1 callers
Function
side_effect
(url, **kwargs)
tests/test_coordinator.py:583
↓ 1 callers
Method
slugify
Simple slugify matching MkDocs behavior.
tests/test_docs_links.py:26
↓ 1 callers
Function
update_const_file
(backends)
scripts/update_backends.py:125
↓ 1 callers
Function
update_docs_config
(backends)
scripts/update_backends.py:238
↓ 1 callers
Function
update_readme
(backends)
scripts/update_backends.py:209
↓ 1 callers
Method
validate_links
Check all links in all files.
tests/test_docs_links.py:57
Method
__class_getitem__
(cls, _)
tests/conftest.py:100
Method
__getattr__
(self, name)
tests/conftest.py:147
Method
__init__
Initialize the watchdog sensor.
custom_components/db_infoscreen/sensor.py:345
Method
__init__
(self, coordinator, config_entry)
custom_components/db_infoscreen/sensor.py:483
Method
__init__
(self, coordinator, config_entry)
custom_components/db_infoscreen/sensor.py:576
Method
__init__
Initialize the repair flow.
custom_components/db_infoscreen/repairs.py:164
Method
__init__
Initialize the repair flow.
custom_components/db_infoscreen/repairs.py:181
Method
__init__
Initialize the repair flow.
custom_components/db_infoscreen/repairs.py:226
Method
__init__
Initialize the repair flow.
custom_components/db_infoscreen/repairs.py:296
Method
__init__
Initialize the calendar entity.
custom_components/db_infoscreen/calendar.py:43
Method
__init__
Initialize the config flow.
custom_components/db_infoscreen/config_flow.py:214
Method
__init__
Initialize options flow.
custom_components/db_infoscreen/config_flow.py:970
Method
__init__
Initialize coordinator state from a config entry.
custom_components/db_infoscreen/__init__.py:401
Method
__init__
Initialize the delay sensor.
custom_components/db_infoscreen/binary_sensor.py:85
Method
__init__
Initialize the cancellation sensor.
custom_components/db_infoscreen/binary_sensor.py:148
Method
__init__
Initialize the connection sensor.
custom_components/db_infoscreen/binary_sensor.py:199
Method
__init__
Initialize the paused sensor.
custom_components/db_infoscreen/binary_sensor.py:237
Method
__init__
Initialize the elevator sensor.
custom_components/db_infoscreen/binary_sensor.py:258
Method
__init__
Initialize the entity.
custom_components/db_infoscreen/entity.py:14
next →
1–100 of 338, ranked by callers