Skip to content

Commit

Permalink
Remove entity description mixin in Huawei LTE (home-assistant#112777)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Mar 9, 2024
1 parent 7979832 commit fed40a8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions homeassistant/components/huawei_lte/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,13 @@
_LOGGER = logging.getLogger(__name__)


@dataclass(frozen=True)
class HuaweiSelectEntityMixin:
"""Mixin for Huawei LTE select entities, to ensure required fields are set."""
@dataclass(frozen=True, kw_only=True)
class HuaweiSelectEntityDescription(SelectEntityDescription):
"""Class describing Huawei LTE select entities."""

setter_fn: Callable[[str], None]


@dataclass(frozen=True)
class HuaweiSelectEntityDescription(SelectEntityDescription, HuaweiSelectEntityMixin):
"""Class describing Huawei LTE select entities."""


async def async_setup_entry(
hass: HomeAssistant,
config_entry: ConfigEntry,
Expand Down

0 comments on commit fed40a8

Please sign in to comment.