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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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