diff --git a/homeassistant/components/synology_dsm/binary_sensor.py b/homeassistant/components/synology_dsm/binary_sensor.py index 3dfc21b8a7b..a75f57db678 100644 --- a/homeassistant/components/synology_dsm/binary_sensor.py +++ b/homeassistant/components/synology_dsm/binary_sensor.py @@ -1,4 +1,6 @@ """Support for Synology DSM binary sensors.""" +from typing import Dict + from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_DISKS @@ -53,6 +55,11 @@ class SynoDSMSecurityBinarySensor(SynologyDSMEntity, BinarySensorEntity): """Return True if entity is available.""" return bool(self._api.security) + @property + def device_state_attributes(self) -> Dict[str, str]: + """Return security checks details.""" + return self._api.security.status_by_check + class SynoDSMStorageBinarySensor(SynologyDSMDeviceEntity, BinarySensorEntity): """Representation a Synology Storage binary sensor.""" diff --git a/homeassistant/components/synology_dsm/manifest.json b/homeassistant/components/synology_dsm/manifest.json index fcf91bb25b3..6ad926cfb9e 100644 --- a/homeassistant/components/synology_dsm/manifest.json +++ b/homeassistant/components/synology_dsm/manifest.json @@ -2,7 +2,7 @@ "domain": "synology_dsm", "name": "Synology DSM", "documentation": "https://www.home-assistant.io/integrations/synology_dsm", - "requirements": ["python-synology==0.8.1"], + "requirements": ["python-synology==0.8.2"], "codeowners": ["@ProtoThis", "@Quentame"], "config_flow": true, "ssdp": [ diff --git a/requirements_all.txt b/requirements_all.txt index 1e17ef46fae..fd0e7dcb917 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1726,7 +1726,7 @@ python-sochain-api==0.0.2 python-songpal==0.12 # homeassistant.components.synology_dsm -python-synology==0.8.1 +python-synology==0.8.2 # homeassistant.components.tado python-tado==0.8.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 158790eb6d1..3a2e42f4048 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -723,7 +723,7 @@ python-openzwave-mqtt==1.0.2 python-songpal==0.12 # homeassistant.components.synology_dsm -python-synology==0.8.1 +python-synology==0.8.2 # homeassistant.components.tado python-tado==0.8.1