Migrate unifiprotect descriptions to be kw_only (#107832)
This commit is contained in:
parent
b6dfa1fa7c
commit
bef596d0dd
8 changed files with 21 additions and 26 deletions
|
@ -43,14 +43,14 @@ _LOGGER = logging.getLogger(__name__)
|
|||
_KEY_DOOR = "door"
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
@dataclasses.dataclass(frozen=True, kw_only=True)
|
||||
class ProtectBinaryEntityDescription(
|
||||
ProtectRequiredKeysMixin, BinarySensorEntityDescription
|
||||
):
|
||||
"""Describes UniFi Protect Binary Sensor entity."""
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
@dataclasses.dataclass(frozen=True, kw_only=True)
|
||||
class ProtectBinaryEventEntityDescription(
|
||||
ProtectEventMixin, BinarySensorEntityDescription
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue