Update the update coordinator API to make it easier to use (#31471)
* Update the update coordinator API to make it easier to use * failed_last_update -> last_update_success
This commit is contained in:
1 parent
d407b8e215
commit
0d474e1183
9 files changed
+69
-41
No files matched your search
@@ -38,7 +38,7 @@ class UpdaterBinary(BinarySensorDevice):
|
||||
@property
|
||||
def available(self) -> bool:
|
||||
"""Return True if entity is available."""
|
||||
return not self.coordinator.failed_last_update
|
||||
return self.coordinator.last_update_success
|
||||
|
||||
@property
|
||||
def should_poll(self) -> bool:
|
||||
|
||||
Reference in new issue
Block a user