SWS-12500-custom-component/tests
SchiZzA 1fe4d6da45
fix(security)+i18n: stop health-attribute leak, mask secrets in logs, sync translations
Security (from the deep audit):
- S1: health "integration_health" sensor no longer dumps the full snapshot in
  extra_state_attributes (readable by any HA user). public_health_snapshot()
  strips internal network details (source IP, internal URLs, raw add-on status);
  full data stays on the authenticated endpoint and admin-only diagnostics.
- S2: anonymize() now masks the Ecowitt passkey/PASSKEY.
- S3: Windy station id masked before logging the dataset.
- S4: diagnostics redacts internal network fields (source IP, URLs, raw_status).

i18n (Q1/Q2):
- Sync strings.json + en.json with the actual flow: add wslink_port_setup step,
  the ecowitt/pocasi/wslink_port_setup menu entries, the pocasi_* and
  windy_key_required error keys, the stale_sensors_detected issue; fix wrong data
  keys (WSLINK->wslink + legacy_enabled, POCASI_CZ_SEND_INTERVAL->POCASI_SEND_INTERVAL,
  pocasi_enabled_checkbox->pocasi_enabled_chcekbox); translate the English ecowitt
  options step (was Czech); de-duplicate the legacy-battery issue description.
- Q2: rename wbgt_index -> wbgt_temp to match the entity translation_key.
- cs.json: add windy_key_required and fix the pocasi data/data_description keys.

Tests: 300 passing, 100% coverage maintained; basedpyright clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21 18:08:34 +02:00
..
conftest.py Add health diagnostic sensor and extensive tests for sws12500 2026-02-21 11:29:40 +01:00
test_binary_battery.py test: reach 100% coverage of custom_components/sws12500 2026-06-21 13:23:34 +02:00
test_config_flow.py test: reach 100% coverage of custom_components/sws12500 2026-06-21 13:23:34 +02:00
test_const.py Add health diagnostic sensor and extensive tests for sws12500 2026-02-21 11:29:40 +01:00
test_data.py test: align suite with v2.0 runtime_data architecture 2026-06-21 12:51:52 +02:00
test_diagnostics.py test: reach 100% coverage of custom_components/sws12500 2026-06-21 13:23:34 +02:00
test_ecowitt_bridge.py test: reach 100% coverage of custom_components/sws12500 2026-06-21 13:23:34 +02:00
test_health.py fix(security)+i18n: stop health-attribute leak, mask secrets in logs, sync translations 2026-06-21 18:08:34 +02:00
test_init.py test: reach 100% coverage of custom_components/sws12500 2026-06-21 13:23:34 +02:00
test_integration_lifecycle.py test: reach 100% coverage of custom_components/sws12500 2026-06-21 13:23:34 +02:00
test_pocasi_push.py Add health diagnostic sensor and extensive tests for sws12500 2026-02-21 11:29:40 +01:00
test_received_data.py test: align suite with v2.0 runtime_data architecture 2026-06-21 12:51:52 +02:00
test_received_ecowitt.py test: reach 100% coverage of custom_components/sws12500 2026-06-21 13:23:34 +02:00
test_routes.py Make routes method-aware and update related tests 2026-03-04 07:53:26 +01:00
test_routes_more.py test: reach 100% coverage of custom_components/sws12500 2026-06-21 13:23:34 +02:00
test_sensor_platform.py test: align suite with v2.0 runtime_data architecture 2026-06-21 12:51:52 +02:00
test_sensors_common.py Add health diagnostic sensor and extensive tests for sws12500 2026-02-21 11:29:40 +01:00
test_sensors_weather.py Add health diagnostic sensor and extensive tests for sws12500 2026-02-21 11:29:40 +01:00
test_sensors_wslink.py Add health diagnostic sensor and extensive tests for sws12500 2026-02-21 11:29:40 +01:00
test_staleness_legacy.py test: reach 100% coverage of custom_components/sws12500 2026-06-21 13:23:34 +02:00
test_strings.py Add health diagnostic sensor and extensive tests for sws12500 2026-02-21 11:29:40 +01:00
test_t9_air_quality.py test: align suite with v2.0 runtime_data architecture 2026-06-21 12:51:52 +02:00
test_translations_cs.py Add health diagnostic sensor and extensive tests for sws12500 2026-02-21 11:29:40 +01:00
test_translations_en.py Add health diagnostic sensor and extensive tests for sws12500 2026-02-21 11:29:40 +01:00
test_utils.py Add health diagnostic sensor and extensive tests for sws12500 2026-02-21 11:29:40 +01:00
test_utils_conv.py fix(security)+i18n: stop health-attribute leak, mask secrets in logs, sync translations 2026-06-21 18:08:34 +02:00
test_utils_more.py Add health diagnostic sensor and extensive tests for sws12500 2026-02-21 11:29:40 +01:00
test_weather_sensor_entity.py test: align suite with v2.0 runtime_data architecture 2026-06-21 12:51:52 +02:00
test_windy_func.py Add health diagnostic sensor and extensive tests for sws12500 2026-02-21 11:29:40 +01:00
test_windy_more.py test: reach 100% coverage of custom_components/sws12500 2026-06-21 13:23:34 +02:00
test_windy_push.py Make routes method-aware and update related tests 2026-03-04 07:53:26 +01:00