fb38c297bd
The "grey box around the icons" report turned out not to be a defect: the box on "10.000 km"/"1 Jahr"/"15" is the wanted pattern, and every value the user can change should carry it. All .feld inputs and selects now get the grey iOS fill; inputs with their own visual language (checkbox/radio/range/file) keep the transparent base rule, so the switches are unaffected. Fuel stations are now displayed as "Shell, Pascalstr. 8, Ingolstadt" instead of the bare operator name. New _marke()/_ist_strasse()/_tankstelle() helpers are shared by both parser paths so Shell and non-Shell receipts format the same. The brand is only matched against the receipt header - searching the whole text would let "Total" hit a totals line. Missing parts are dropped instead of leaving empty comma slots, and without a known brand the operator name takes its place. station_address still carries the full street and postcode. test_bekannte_stationen updated to the new format; suite stays green. installationspaket/ is versioned from now on (user request). It contains no real vehicle data - only the example profile with empty FIN/plate placeholders. Keep it in sync whenever pyscript/ or www/ changes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
39 lines
2.0 KiB
YAML
39 lines
2.0 KiB
YAML
# Ergänzung zur bestehenden configuration.yaml.
|
|
# Nicht die ganze Datei ersetzen - diese Zeilen unter den jeweils schon
|
|
# vorhandenen Top-Level-Schlüsseln einfügen (falls z. B. schon ein
|
|
# `pyscript:`-Block existiert, dort zusammenführen statt duplizieren).
|
|
|
|
# pyscript-Backend: Fahrterkennung, Fahrtabschluss, Reifenzähler,
|
|
# Belegverarbeitung (siehe pyscript/-Ordner). allow_all_imports ist nötig,
|
|
# weil die Skripte os, subprocess, urllib.request, base64 und uuid nutzen -
|
|
# pyscript erlaubt standardmäßig gar keine Importe, auch keine aus der
|
|
# Standardbibliothek.
|
|
pyscript:
|
|
allow_all_imports: true
|
|
|
|
# Frontend: bindet den umgebauten Prototyp als eigenen Sidebar-Eintrag ein
|
|
# (§10 Punkt 1). module_url zeigt auf /config/www/audi-dashboard-panel.js
|
|
# (lokal erreichbar unter /local/audi-dashboard-panel.js). Die Datei selbst
|
|
# entsteht erst in Phase 2 (Frontend-Umbau) - bis dahin ist dieser Eintrag
|
|
# noch nicht funktionsfähig.
|
|
#
|
|
# Das ?v=1 am Ende ist absichtlich: audi-dashboard-panel.js selbst wird von
|
|
# Home Assistant mit einer sehr langen Standard-Cache-Zeit ausgeliefert
|
|
# (31 Tage), weil sie als stabiler Lade-Stub gedacht ist, der praktisch nie
|
|
# wieder angefasst wird (siehe deren eigener Kopfkommentar). Ändert sie sich
|
|
# doch einmal (ist an der Testinstanz bereits vorgekommen), bleibt jeder
|
|
# Browser, der die Datei vorher schon geladen hatte, sonst für bis zu 31
|
|
# Tage auf dem alten Stand hängen - unabhängig davon, wie oft die Datei auf
|
|
# dem Server ersetzt wird. Die Versionsnummer hier zu erhöhen ändert die
|
|
# angefragte URL und erzwingt damit einen echten Neuabruf bei jedem Browser.
|
|
# Das erfordert einen HA-Neustart (Änderungen an configuration.yaml), ist
|
|
# aber dafür zuverlässig - anders als bei audi-dashboard-app.js/.css, die
|
|
# über audi-dashboard-version.json ganz ohne Neustart aktualisiert werden.
|
|
panel_custom:
|
|
- name: audi-dashboard-panel
|
|
sidebar_title: Mein Audi
|
|
sidebar_icon: mdi:car-sports
|
|
module_url: /local/audi-dashboard-panel.js?v=1
|
|
embed_iframe: false
|
|
trust_external_script: false
|