Skip to content

Commit 45d3b6a

Browse files
authored
Rename time remaining in Dryer to match Washer (#101)
1 parent 7f1c112 commit 45d3b6a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cli_dryer_menu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def print_status(dr: Dryer):
2020
print(f"online: {dr.get_online()}")
2121
print(f"state: {dr.get_machine_state()}")
2222
print(f"door open: {dr.get_door_open()}")
23-
print(f"est time remaining: {dr.get_est_time_remaining()}")
23+
print(f"est time remaining: {dr.get_time_remaining()}")
2424
print(f"extra power changeable: {dr.get_extra_power_changeable()}")
2525
print(f"steam changeable: {dr.get_steam_changeable()}")
2626
print(f"cycle select: {dr.get_cycle_changeable()}")

tests/test_dryer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async def test_attributes(appliances_manager: AppliancesManager):
1212
dryer = appliances_manager.dryers[0]
1313
assert dryer.get_machine_state() == MachineState.Standby
1414
assert not dryer.get_door_open()
15-
assert dryer.get_est_time_remaining() == 1800
15+
assert dryer.get_time_remaining() == 1800
1616
assert not dryer.get_drum_light_on()
1717
assert dryer.get_steam_changeable()
1818
assert not dryer.get_cycle_changeable()

whirlpool/dryer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
ATTRVAL_MACHINE_STATE_CANCELLED = "19"
2828

2929
ATTR_DOOR_OPEN = "Cavity_OpStatusDoorOpen"
30-
ATTR_EST_TIME_REMAINING = "Cavity_TimeStatusEstTimeRemaining"
30+
ATTR_TIME_REMAINING = "Cavity_TimeStatusEstTimeRemaining"
3131
ATTR_DRUM_LIGHT_ON = "Cavity_DisplaySetDrumLightOn"
3232

3333
ATTR_EXTRA_POWER_CHANGEABLE = "Cavity_ChangeStatusExtraPowerChangeable"
@@ -233,8 +233,8 @@ def get_machine_state(self) -> MachineState | None:
233233
def get_door_open(self) -> bool | None:
234234
return self.attr_value_to_bool(self._get_attribute(ATTR_DOOR_OPEN))
235235

236-
def get_est_time_remaining(self) -> int | None:
237-
return self._get_int_attribute(ATTR_EST_TIME_REMAINING)
236+
def get_time_remaining(self) -> int | None:
237+
return self._get_int_attribute(ATTR_TIME_REMAINING)
238238

239239
def get_drum_light_on(self) -> bool | None:
240240
return self.attr_value_to_bool(self._get_attribute(ATTR_DRUM_LIGHT_ON))

0 commit comments

Comments
 (0)