Bump aioskybell to 22.6.0 (#73073)

* Bump aioskybell to 22.6.0

* uno mas
This commit is contained in:
Robert Hillis 2022-06-05 13:09:44 -04:00 committed by GitHub
parent b1073fb362
commit 58d4ea0db9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 6 deletions

View file

@ -1,6 +1,8 @@
"""Binary sensor support for the Skybell HD Doorbell."""
from __future__ import annotations
from datetime import datetime
from aioskybell.helpers import const as CONST
import voluptuous as vol
@ -68,7 +70,9 @@ class SkybellBinarySensor(SkybellEntity, BinarySensorEntity):
self._event: dict[str, str] = {}
@property
def extra_state_attributes(self) -> dict[str, str | int | tuple[str, str]]:
def extra_state_attributes(
self,
) -> dict[str, str | int | datetime | tuple[str, str]]:
"""Return the state attributes."""
attrs = super().extra_state_attributes
if event := self._event.get(CONST.CREATED_AT):