Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve quality scale for Swiss Public Transport #131711

Draft
wants to merge 5 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
rules:
# Bronze
action-setup: done
appropriate-polling:
status: done
comment: >
Polling interval is set to support one connection.
There is a rate limit at 10000 calls per day.
brands: done
common-modules: done
config-flow-test-coverage: done
config-flow: done
dependency-transparency: todo
docs-actions: done
docs-high-level-description: done
docs-installation-instructions: done
docs-removal-instructions: done
entity-event-setup:
status: exempt
comment: No events implemented
entity-unique-id: done
has-entity-name: done
runtime-data: done
test-before-configure: done
test-before-setup: done
unique-config-entry: done

# Silver
config-entry-unloading: done
log-when-unavailable:
status: done
comment: Offloaded to coordinator
entity-unavailable:
status: done
comment: Offloaded to coordinator
action-exceptions: done
reauthentication-flow:
status: exempt
comment: No authentication needed
parallel-updates: done
test-coverage: todo
integration-owner: done
docs-installation-parameters: done
docs-configuration-parameters:
status: exempt
comment: no options flow

# Gold
entity-translations: done
entity-device-class: done
devices: done
entity-category: done
entity-disabled-by-default:
status: done
comment: No disabled entities implemented
discovery:
status: exempt
comment: Nothing to discover
stale-devices:
status: exempt
comment: Stale not possible
diagnostics: todo
exception-translations: done
icon-translations: done
reconfiguration-flow: done
dynamic-devices:
status: exempt
comment: No dynamic devices
discovery-update-info:
status: exempt
comment: Nothing to discover
repair-issues:
status: exempt
comment: Nothing to repair
docs-use-cases: todo
docs-supported-devices: done
docs-supported-functions: done
docs-data-update: done
docs-known-limitations: todo
docs-troubleshooting: todo
docs-examples: todo

# Platinum
async-dependency: done
inject-websession: done
strict-typing: done
2 changes: 2 additions & 0 deletions homeassistant/components/swiss_public_transport/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

_LOGGER = logging.getLogger(__name__)

PARALLEL_UPDATES = 0

SCAN_INTERVAL = timedelta(seconds=90)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
"data": {
"from": "Start station",
"to": "End station",
"via": "Via stations"
},
"data_description": {
"from": "The departure station for the start of the connection.",
"to": "The arrival station for the end of the connection.",
"via": "List of up to 5 via stations"
},
"description": "Provide start and end station for your connection,\nand optionally up to 5 via stations.\n\nCheck the [stationboard]({stationboard_url}) for valid stations.",
Expand Down
1 change: 0 additions & 1 deletion script/hassfest/quality_scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,6 @@
"supla",
"surepetcare",
"swiss_hydrological_data",
"swiss_public_transport",
"swisscom",
"switch_as_x",
"switchbee",
Expand Down