diff --git a/homeassistant/components/synology_dsm/sensor.py b/homeassistant/components/synology_dsm/sensor.py index e2631b9c4ed..87c1ba128c6 100644 --- a/homeassistant/components/synology_dsm/sensor.py +++ b/homeassistant/components/synology_dsm/sensor.py @@ -156,7 +156,7 @@ class SynoNasUtilSensor(SynoNasSensor): attr = getattr(self._api.utilisation, self.sensor_type) if callable(attr): attr = attr() - if not attr: + if attr is None: return None # Data (RAM) @@ -177,7 +177,7 @@ class SynoNasStorageSensor(SynoNasSensor): def state(self): """Return the state.""" attr = getattr(self._api.storage, self.sensor_type)(self.monitored_device) - if not attr: + if attr is None: return None # Data (disk space)