mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Fix Just Nimbus error codes (#83856)
This commit is contained in:
parent
b5107a3f1d
commit
cc5d319369
@ -30,4 +30,4 @@ class JustNimbusEntity(
|
||||
@property
|
||||
def available(self) -> bool:
|
||||
"""Return device availability."""
|
||||
return super().available and getattr(self.coordinator.data, "error_code") == 0
|
||||
return super().available and self.coordinator.data is not None
|
||||
|
Loading…
x
Reference in New Issue
Block a user