Fix Just Nimbus error codes (#83856)

This commit is contained in:
Koen van Zuijlen
2022-12-13 10:59:13 +01:00
committed by GitHub
parent b5107a3f1d
commit cc5d319369

View File

@@ -30,4 +30,4 @@ class JustNimbusEntity(
@property @property
def available(self) -> bool: def available(self) -> bool:
"""Return device availability.""" """Return device availability."""
return super().available and getattr(self.coordinator.data, "error_code") == 0 return super().available and self.coordinator.data is not None