MCPcopy Index your code

hub / github.com/FaserF/ha-db_infoscreen / functions

Functions338 in github.com/FaserF/ha-db_infoscreen

↓ 36 callersMethod_get_config_value
Get value from our updated options or fall back to config data.
custom_components/db_infoscreen/config_flow.py:1024
↓ 31 callersMethod_async_update_data
Retrieve and process next departures for the configured station.
custom_components/db_infoscreen/__init__.py:691
↓ 31 callersFunctionpatch_session
Patch the async_get_clientsession to return a mock session with data.
tests/common.py:9
↓ 13 callersMethodasync_step_user
Handle the first step: Server Selection.
custom_components/db_infoscreen/config_flow.py:229
↓ 11 callersFunctionnormalize_whitespace
Remove double spaces and leading/trailing whitespace. Returns an empty string if value is None.
custom_components/db_infoscreen/utils.py:23
↓ 9 callersMethodasync_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 callersMethodasync_step_station_search
Handle the station search step.
custom_components/db_infoscreen/config_flow.py:321
↓ 7 callersFunctionfind_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 callersMethod_async_save_options
Update options and the entry title before saving.
custom_components/db_infoscreen/config_flow.py:975
↓ 6 callersMethod_get_events_from_departures
Convert departure data to calendar events.
custom_components/db_infoscreen/calendar.py:79
↓ 6 callersFunctionasync_get_station_candidates
Fetch station candidates from DBF backend.
custom_components/db_infoscreen/utils.py:349
↓ 6 callersMethodasync_refresh
(self)
tests/conftest.py:126
↓ 6 callersMethoddetails_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 callersMethod__init__
Initialize the binary sensor.
custom_components/db_infoscreen/binary_sensor.py:67
↓ 4 callersMethod_get_stats
Calculate statistics from history.
custom_components/db_infoscreen/sensor.py:591
↓ 4 callersMethod_manual_config_schema
Schema for manual entry configuration with Data Source prominent.
custom_components/db_infoscreen/config_flow.py:597
↓ 4 callersMethod_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 callersMethodasync_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 callersFunctionflatten_json
Flatten a nested json dict, handling lists as well.
tests/test_translations.py:70
↓ 4 callersFunctionget_formatted_item
( display: str, hashes: list, repo: str, commit_authors: dict )
scripts/generate_changelog.py:123
↓ 4 callersFunctionnormalize_data_source
Normalize legacy data source values to descriptive keys.
custom_components/db_infoscreen/const.py:133
↓ 4 callersFunctionparse_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 callersMethod__init__
Initialize the sensor.
custom_components/db_infoscreen/sensor.py:33
↓ 3 callersMethod_async_create_db_entry
Finalize the entry creation and save to Home Assistant.
custom_components/db_infoscreen/config_flow.py:654
↓ 3 callersMethod_async_get_addon_manager
Return the addon manager.
custom_components/db_infoscreen/config_flow.py:883
↓ 3 callersMethod_check_watched_trips
Check for important updates on watched trains and send notifications.
custom_components/db_infoscreen/__init__.py:1624
↓ 3 callersMethod_compute_issues
Parse departures for relevant elevator issues.
custom_components/db_infoscreen/binary_sensor.py:298
↓ 3 callersFunction_enable_socket_temporarily
Bypass pytest-socket blocking during these tests.
tests/test_live_api.py:23
↓ 3 callersMethod_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 callersFunctionasync_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 callersMethodasync_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 callersFunctionasync_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 callersFunctioncreate_flow
Create a ConfigFlow instance with mocked base methods.
tests/test_config_flow_search.py:18
↓ 2 callersMethod_async_prefill_addon_info
Pre-fill addon info from Supervisor.
custom_components/db_infoscreen/config_flow.py:913
↓ 2 callersMethod_get_next_departure
Get the next non-cancelled departure.
custom_components/db_infoscreen/sensor.py:497
↓ 2 callersMethod_get_watchdog_data
Calculate watchdog data from the first departure.
custom_components/db_infoscreen/sensor.py:390
↓ 2 callersMethod_handle_update_error
Register a data fetch error and check for stale data issues.
custom_components/db_infoscreen/__init__.py:1903
↓ 2 callersMethod_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 callersFunctionasync_get_autocomplete_path
Dynamically discover the autocomplete.js path from the server's homepage HTML.
custom_components/db_infoscreen/utils.py:110
↓ 2 callersFunctionasync_setup_entry
Set up a DBInfoSensor entity for the given config entry.
custom_components/db_infoscreen/sensor.py:634
↓ 2 callersFunctionasync_verify_server
Verify that a server is reachable and specifically a DBF instance.
custom_components/db_infoscreen/utils.py:155
↓ 2 callersMethodconvert_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 callersFunctioncreate_mock_response
( status: int, content_type: str, text: str | None = None, json_data: dict | N
tests/test_station_candidates.py:92
↓ 2 callersFunctioncreate_mock_response
(data)
tests/common.py:13
↓ 2 callersMethodformat_departure_time
Format a departure time using centralized robust parsing.
custom_components/db_infoscreen/sensor.py:79
↓ 2 callersFunctiongenerate_readme_content
Generate the categorized README content for Data Sources.
scripts/update_backends.py:180
↓ 2 callersFunctionmigrate_dict
(d: dict[str, Any])
custom_components/db_infoscreen/__init__.py:337
↓ 2 callersFunctionparse_dbf_multiple_choices
Parse the HTML of a 300 Multiple Choices page from DBF.
custom_components/db_infoscreen/utils.py:489
↓ 1 callersFunction_generate_entry_title
Generate a title for the config entry based on current settings.
custom_components/db_infoscreen/config_flow.py:71
↓ 1 callersMethod_get_advanced_schema
Get the schema for advanced options.
custom_components/db_infoscreen/config_flow.py:832
↓ 1 callersMethod_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 callersFunction_mock_response
Create a minimal async context manager response.
tests/test_coordinator.py:21
↓ 1 callersMethod_parse_departure_time
Parse departure time using centralized logic.
custom_components/db_infoscreen/calendar.py:210
↓ 1 callersMethod_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 callersMethod_validate_server_url
Verify that the server is reachable and looks like a DBF instance.
custom_components/db_infoscreen/config_flow.py:872
↓ 1 callersMethodasync_config_entry_first_refresh
(self)
tests/conftest.py:123
↓ 1 callersMethodasync_fetch_server_version
Fetch server version from the API.
custom_components/db_infoscreen/__init__.py:574
↓ 1 callersFunctionasync_refresh_departures
(service_call)
tests/test_feature_updates.py:88
↓ 1 callersMethodasync_step_change_source
Allow user to change the data source.
custom_components/db_infoscreen/repairs.py:265
↓ 1 callersMethodasync_step_change_source
Allow user to change the data source.
custom_components/db_infoscreen/repairs.py:354
↓ 1 callersMethodasync_step_hassio
Handle Hass.io discovery.
custom_components/db_infoscreen/config_flow.py:892
↓ 1 callersMethodasync_step_hassio_confirm
Confirm installation of the official addon.
custom_components/db_infoscreen/config_flow.py:935
↓ 1 callersMethodasync_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 callersMethodasync_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 callersFunctioncheck_schema
(obj, trace="")
tests/test_translations.py:323
↓ 1 callersFunctioncheck_server_status
Check if dbf.fabiseitz.de is reachable and returns valid data.
tests/test_live_api.py:47
↓ 1 callersMethodextract_anchors
Extract all possible anchor IDs from markdown files.
tests/test_docs_links.py:32
↓ 1 callersFunctionextract_data
(html_content)
scripts/update_backends.py:79
↓ 1 callersFunctionfetch_backends
()
scripts/update_backends.py:67
↓ 1 callersFunctionflatten
(x, name="")
tests/test_translations.py:74
↓ 1 callersFunctionget_all_markdown_files
Get all markdown files in the docs directory.
tests/test_docs_links.py:10
↓ 1 callersFunctionget_norm_key
(msg: str)
scripts/generate_changelog.py:107
↓ 1 callersFunctionget_shortname
Extract shortname (e.g. 'AVV' from 'AVV – Aachener Verkehrsverbund')
scripts/update_backends.py:120
↓ 1 callersFunctionmain
()
scripts/generate_changelog.py:156
↓ 1 callersFunctionprune_response_cache
Remove expired entries from the global response cache.
custom_components/db_infoscreen/utils.py:87
↓ 1 callersFunctionside_effect
(url, **kwargs)
tests/test_coordinator.py:583
↓ 1 callersMethodslugify
Simple slugify matching MkDocs behavior.
tests/test_docs_links.py:26
↓ 1 callersFunctionupdate_const_file
(backends)
scripts/update_backends.py:125
↓ 1 callersFunctionupdate_docs_config
(backends)
scripts/update_backends.py:238
↓ 1 callersFunctionupdate_readme
(backends)
scripts/update_backends.py:209
↓ 1 callersMethodvalidate_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