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
1 changed files with 4 additions and 1 deletions
|
@ -92,4 +92,7 @@ class IronOSUpdate(IronOSBaseEntity, UpdateEntity):
|
||||||
@property
|
@property
|
||||||
def available(self) -> bool:
|
def available(self) -> bool:
|
||||||
"""Return if entity is available."""
|
"""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…
Add table
Reference in a new issue