mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Prevent update entity becoming unavailable on device disconnect in IronOS (#129840)
* Don't render update entity unavailable when Pinecil device disconnects * fixes
This commit is contained in:
parent
05e76105ad
commit
611a952232
@ -92,4 +92,7 @@ class IronOSUpdate(IronOSBaseEntity, UpdateEntity):
|
||||
@property
|
||||
def available(self) -> bool:
|
||||
"""Return if entity is available."""
|
||||
return super().available and self.firmware_update.last_update_success
|
||||
return (
|
||||
self.installed_version is not None
|
||||
and self.firmware_update.last_update_success
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user