mirror of
https://github.com/home-assistant/core.git
synced 2025-05-04 14:09:16 +00:00

* 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
11 lines
265 B
Python
11 lines
265 B
Python
"""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()
|