diff --git a/homeassistant/components/skybell/binary_sensor.py b/homeassistant/components/skybell/binary_sensor.py index dcb5466e479..1af85398d47 100644 --- a/homeassistant/components/skybell/binary_sensor.py +++ b/homeassistant/components/skybell/binary_sensor.py @@ -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): diff --git a/homeassistant/components/skybell/entity.py b/homeassistant/components/skybell/entity.py index cf728cde069..6b4683dda6b 100644 --- a/homeassistant/components/skybell/entity.py +++ b/homeassistant/components/skybell/entity.py @@ -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, diff --git a/homeassistant/components/skybell/manifest.json b/homeassistant/components/skybell/manifest.json index 335ff2615f8..23b29a49247 100644 --- a/homeassistant/components/skybell/manifest.json +++ b/homeassistant/components/skybell/manifest.json @@ -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"] diff --git a/requirements_all.txt b/requirements_all.txt index 56411aafceb..914d02fb421 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index c96a7e1e428..a18f045207b 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -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