Add bed sensor availability for withings (#37906)

This commit is contained in:
Robert Van Gorkom authored and GitHub committed 2020-08-02 09:36:14 -05:00
1 parent a57dca1e11
commit c913d17913
2 files changed
+9 -3

No files matched your search

@@ -926,6 +926,12 @@ class BaseWithingsSensor(Entity):
if self._attribute.update_type == UpdateType.POLL:
return self._data_manager.poll_data_update_coordinator.last_update_success
if self._attribute.update_type == UpdateType.WEBHOOK:
return self._data_manager.webhook_config.enabled and (
self._attribute.measurement
in self._data_manager.webhook_update_coordinator.data
)
return True
@property