mirror of
https://github.com/home-assistant/core.git
synced 2025-08-23 22:41:39 +02:00
Remove now-redundant assertion
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user