Skip to content

Commit

Permalink
Do not freeze entity descriptions for backward-compatibility (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Jan 9, 2024
1 parent 97fd730 commit 11bbd53
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion custom_components/spook/ectoplasms/cloud/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from homeassistant.helpers.entity_platform import AddEntitiesCallback


@dataclass(frozen=True, kw_only=True)
@dataclass(kw_only=True)
class HomeAssistantCloudSpookSwitchEntityDescription(
SpookEntityDescription,
SwitchEntityDescription,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/spook/ectoplasms/homeassistant/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from homeassistant.helpers.entity_platform import AddEntitiesCallback


@dataclass(frozen=True, kw_only=True)
@dataclass(kw_only=True)
class HomeAssistantSpookButtonEntityDescription(
SpookEntityDescription,
ButtonEntityDescription,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/spook/ectoplasms/homeassistant/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
from homeassistant.helpers.entity_platform import AddEntitiesCallback


@dataclass(frozen=True, kw_only=True)
@dataclass(kw_only=True)
class HomeAssistantSpookSensorEntityDescription(
SpookEntityDescription,
SensorEntityDescription,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/spook/ectoplasms/repairs/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from homeassistant.helpers.entity_platform import AddEntitiesCallback


@dataclass(frozen=True, kw_only=True)
@dataclass(kw_only=True)
class RepairsSpookButtonEntityDescription(
SpookEntityDescription,
ButtonEntityDescription,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/spook/ectoplasms/repairs/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from homeassistant.helpers.entity_platform import AddEntitiesCallback


@dataclass(frozen=True, kw_only=True)
@dataclass(kw_only=True)
class RepairsSpookSensorEntityDescription(
SpookEntityDescription,
SensorEntityDescription,
Expand Down

0 comments on commit 11bbd53

Please sign in to comment.