Skip to content

Commit

Permalink
Modify operation mode availability calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
klejejs committed Oct 13, 2024
1 parent d9ee9a8 commit d8a4d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/thermia/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def supported_features(self):
"""Return the list of supported features."""
features = WaterHeaterEntityFeature.TARGET_TEMPERATURE

if self.current_operation is not None:
if self.current_operation is not None and self.coordinator.data.heat_pumps[self.idx].is_operation_mode_read_only is False:
features |= WaterHeaterEntityFeature.OPERATION_MODE

return features
Expand Down

0 comments on commit d8a4d0f

Please sign in to comment.