Add bed sensor availability for withings (#37906)
This commit is contained in:
parent
a57dca1e11
commit
c913d17913
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue