mirror of
https://github.com/home-assistant/core.git
synced 2026-09-11 10:06:07 -05:00
Fix Just Nimbus error codes (#83856)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user