Migrate unifiprotect descriptions to be kw_only (#107832)

This commit is contained in:
J. Nick Koston 2024-01-11 22:33:33 -10:00 committed by GitHub
parent b6dfa1fa7c
commit bef596d0dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 21 additions and 26 deletions

View file

@ -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
):