Bump python-synology to 0.8.2 (#36410)
* Bump python-synology to 0.8.2 * state_attributes to device_state_attributes Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io> Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
parent
9ef14efa29
commit
e08ba6703c
4 changed files with 10 additions and 3 deletions
|
@ -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."""
|
||||
|
|
|
@ -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": [
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue