Skip to content

Commit

Permalink
Fix Weight Unit Control
Browse files Browse the repository at this point in the history
  • Loading branch information
ollo69 committed Aug 14, 2023
1 parent 190ac0e commit 9310944
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/smartthinq_sensors/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ class ThinQSensorEntityDescription(SensorEntityDescription):
ThinQSensorEntityDescription(
key=MicroWaveFeatures.OVEN_UPPER_MODE,
name="Oven mode",
icon=DEFAULT_ICON,
icon="mdi:inbox-full",
),
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def defrost_weight_unit_options(self) -> list[str]:

async def set_defrost_weight_unit(self, unit: str):
"""Set weight unit kg/lb."""
if unit not in self.display_scroll_speed_options:
if unit not in self.defrost_weight_unit_options:
raise ValueError(f"Invalid display unit: {unit}")
cmd = {"mwoSettingDefrostWeightMode": unit}
await self.set(
Expand Down
Empty file modified scripts/develop
100644 → 100755
Empty file.
Empty file modified scripts/lint
100644 → 100755
Empty file.
Empty file modified scripts/setup
100644 → 100755
Empty file.

0 comments on commit 9310944

Please sign in to comment.