Redact user codes from zwave_js diagnostics (#68515)
* Redact user codes from zwave_js diagnostics * simplify test * Remove unused logic * revert change and make all inputs to ZwaveValueID optional * revert change and make all inputs to ZwaveValueID optional * Remove unused diagnostics data from fixture and test location redaction * Add empty ZwaveValueID check * Improve coverage * Simplify post_init check * Use dataclasses.astuple for checks instead
This commit is contained in:
parent
ccd8c7d5f8
commit
8293430e25
9 changed files with 2064 additions and 44 deletions
|
@ -210,6 +210,12 @@ def log_config_state_fixture():
|
|||
}
|
||||
|
||||
|
||||
@pytest.fixture(name="config_entry_diagnostics", scope="session")
|
||||
def config_entry_diagnostics_fixture():
|
||||
"""Load the config entry diagnostics fixture data."""
|
||||
return json.loads(load_fixture("zwave_js/config_entry_diagnostics.json"))
|
||||
|
||||
|
||||
@pytest.fixture(name="multisensor_6_state", scope="session")
|
||||
def multisensor_6_state_fixture():
|
||||
"""Load the multisensor 6 node state fixture data."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue