Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[TC-FAN] Update Python test to validate lowestOff fallback value in FanControl Step command

Aperta
#779 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@FrancoLionti ci sta già lavorando.

Dal 4/5/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Summary Title:

Update Python test to validate lowestOff fallback value in FanControl Step command

Description:

Following up on a PR review comment from @soares-sergio, it was identified that the fallback value for lowestOff in the FanControl cluster's Step command should be true according to the spec, rather than false.
Link to the comment

Original implementation:

bool lowestOffValue = commandData.lowestOff.ValueOr(false);
// Suggested/Spec-compliant change:
bool lowestOffValue = commandData.lowestOff.ValueOr(true);

While we have existing Python tests for the FanControl cluster, they do not currently validate this specific omitted-argument fallback behavior. This issue is to track the necessary update to the existing test scripts to ensure this spec requirement is explicitly covered and not missed in future regressions.

Steps to reproduce:

Locate the existing Python test script that covers the FanControl cluster's Step command within src/python_testing/ (Target files to check: TC_FAN_3_1.py, TC_FAN_3_2.py, TC_FAN_3_3.py, TC_FAN_3_4.py, TC_FAN_3_5.py, or TC_FAN_4_1.py).

Implement a new test step/case that sends a Step command where the lowestOff field is intentionally omitted from the payload.

Assert that the device processes the command using the default fallback value of true, exactly matching the spec requirements.

Logs:

N/A - This is a test coverage enhancement request originating from a code review.

Lingua principale
Python
Stelle
19
Fork
7
Merge medio
3g 4h
PR unite (30g)
2

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di project-chip/matter-test-scripts

Tutte le issue di project-chip/matter-test-scripts

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.