Skip to content

Commit

Permalink
properly mark sensors unavailable if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
kodebach committed Nov 8, 2023
1 parent e4f4469 commit d4ca0ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/idm_heatpump/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def sensor_id(self) -> str:
@property
def available(self) -> bool:
"""Return wether this sensor is available."""
return self.sensor_address in self.coordinator.heatpump.sensors
return self.sensor_address.name in self.coordinator.data

@property
def unique_id(self):
Expand Down

0 comments on commit d4ca0ff

Please sign in to comment.