Prevent update entity becoming unavailable on device disconnect in IronOS (#129840)
* Don't render update entity unavailable when Pinecil device disconnects * fixespull/129906/head
parent
05e76105ad
commit
611a952232
|
@ -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…
Reference in New Issue