Skip to content

Commit

Permalink
Fix #98 Error reading optimizers
Browse files Browse the repository at this point in the history
  • Loading branch information
wlcrs committed Jul 28, 2022
1 parent 81b1c9d commit a16b873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sensor.py
Expand Up @@ -771,7 +771,7 @@ def available(self) -> bool:
# optimizer is not offline
and (
self.entity_description.key == "running_status"
or self.coordinator.data[self.optimizer.id].running_status
or self.coordinator.data[self.optimizer_id].running_status
!= OptimizerRunningStatus.OFFLINE
)
)
Expand Down

0 comments on commit a16b873

Please sign in to comment.