1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Allow inheriting base component entity descriptions in frozen dataclasses (#105512)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Erik Montnemery
2023-12-16 10:33:50 +01:00
committed by GitHub
parent 47f8e08261
commit 104bcc64b7
31 changed files with 35 additions and 85 deletions

View File

@@ -1313,8 +1313,7 @@ class Entity(ABC):
)
@dataclasses.dataclass(slots=True)
class ToggleEntityDescription(EntityDescription):
class ToggleEntityDescription(EntityDescription, frozen_or_thawed=True):
"""A class that describes toggle entities."""