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
10
tests/components/zwave_js/test_helpers.py
Normal file
10
tests/components/zwave_js/test_helpers.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
"""Test Z-Wave JS helpers module."""
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.zwave_js.helpers import ZwaveValueID
|
||||
|
||||
|
||||
async def test_empty_zwave_value_id():
|
||||
"""Test empty ZwaveValueID is invalid."""
|
||||
with pytest.raises(ValueError):
|
||||
ZwaveValueID()
|
Loading…
Add table
Add a link
Reference in a new issue