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

View file

@ -1,6 +1,8 @@
"""Entity representing a Skybell HD Doorbell."""
from __future__ import annotations
from datetime import datetime
from aioskybell import SkybellDevice
from homeassistant.const import ATTR_CONNECTIONS
@ -44,9 +46,11 @@ class SkybellEntity(CoordinatorEntity[SkybellDataUpdateCoordinator]):
return self.coordinator.device
@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."""
attr: dict[str, str | int | tuple[str, str]] = {
attr: dict[str, str | int | datetime | tuple[str, str]] = {
"device_id": self._device.device_id,
"status": self._device.status,
"location": self._device.location,

View file

@ -3,7 +3,7 @@
"name": "SkyBell",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/skybell",
"requirements": ["aioskybell==22.3.0"],
"requirements": ["aioskybell==22.6.0"],
"codeowners": ["@tkdrob"],
"iot_class": "cloud_polling",
"loggers": ["aioskybell"]

View file

@ -241,7 +241,7 @@ aiosenz==1.0.0
aioshelly==2.0.0
# homeassistant.components.skybell
aioskybell==22.3.0
aioskybell==22.6.0
# homeassistant.components.slimproto
aioslimproto==2.0.1

View file

@ -210,7 +210,7 @@ aiosenz==1.0.0
aioshelly==2.0.0
# homeassistant.components.skybell
aioskybell==22.3.0
aioskybell==22.6.0
# homeassistant.components.slimproto
aioslimproto==2.0.1