Remove now-redundant assertion

This commit is contained in:
Michael Kowalchuk
2021-11-15 21:38:50 -08:00
parent aed4df6cb7
commit 2410e50a97

View File

@@ -339,9 +339,6 @@ class ConfigurableFanSpeedDataTemplate(
def resolve_data(self, value: ZwaveValue) -> dict[str, Any]: def resolve_data(self, value: ZwaveValue) -> dict[str, Any]:
"""Resolve helper class data for a discovered value.""" """Resolve helper class data for a discovered value."""
if not self.configuration_option:
raise ValueError("Invalid discovery data template")
data: dict[str, Any] = { data: dict[str, Any] = {
"configuration_value": self._get_value_from_id( "configuration_value": self._get_value_from_id(
value.node, self.configuration_option value.node, self.configuration_option