Skip to content

Commit

Permalink
fix: attribute name error
Browse files Browse the repository at this point in the history
  • Loading branch information
sopelj committed Dec 26, 2023
1 parent 0490795 commit 59bd30a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/ember_mug/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class EmberMugLiquidLevelSensor(EmberMugSensor):
@cached_property
def max_level(self) -> int:
"""Max level is different for travel mug."""
if self.coordinator.mug.data.model_info.type == DeviceType.TRAVEL_MUG:
if self.coordinator.mug.data.model_info.device_type == DeviceType.TRAVEL_MUG:
return 100
return 30

Expand Down

0 comments on commit 59bd30a

Please sign in to comment.