diff --git a/homeassistant/components/matter/models.py b/homeassistant/components/matter/models.py index 2575b16e8b1..eaa9ccf9a09 100644 --- a/homeassistant/components/matter/models.py +++ b/homeassistant/components/matter/models.py @@ -2,8 +2,8 @@ from __future__ import annotations from collections.abc import Callable -from dataclasses import asdict, dataclass -from typing import TYPE_CHECKING, Any +from dataclasses import dataclass +from typing import Any from chip.clusters import Objects as clusters from chip.clusters.Objects import ClusterAttributeDescriptor @@ -13,19 +13,6 @@ from matter_server.client.models.node import MatterEndpoint from homeassistant.const import Platform from homeassistant.helpers.entity import EntityDescription -if TYPE_CHECKING: - from _typeshed import DataclassInstance - - -class DataclassMustHaveAtLeastOne: - """A dataclass that must have at least one input parameter that is not None.""" - - def __post_init__(self: DataclassInstance) -> None: - """Post dataclass initialization.""" - if all(val is None for val in asdict(self).values()): - raise ValueError("At least one input parameter must not be None") - - SensorValueTypes = type[ clusters.uint | int | clusters.Nullable | clusters.float32 | float ]