File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def print_status(dr: Dryer):
20
20
print (f"online: { dr .get_online ()} " )
21
21
print (f"state: { dr .get_machine_state ()} " )
22
22
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 ()} " )
24
24
print (f"extra power changeable: { dr .get_extra_power_changeable ()} " )
25
25
print (f"steam changeable: { dr .get_steam_changeable ()} " )
26
26
print (f"cycle select: { dr .get_cycle_changeable ()} " )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ async def test_attributes(appliances_manager: AppliancesManager):
12
12
dryer = appliances_manager .dryers [0 ]
13
13
assert dryer .get_machine_state () == MachineState .Standby
14
14
assert not dryer .get_door_open ()
15
- assert dryer .get_est_time_remaining () == 1800
15
+ assert dryer .get_time_remaining () == 1800
16
16
assert not dryer .get_drum_light_on ()
17
17
assert dryer .get_steam_changeable ()
18
18
assert not dryer .get_cycle_changeable ()
Original file line number Diff line number Diff line change 27
27
ATTRVAL_MACHINE_STATE_CANCELLED = "19"
28
28
29
29
ATTR_DOOR_OPEN = "Cavity_OpStatusDoorOpen"
30
- ATTR_EST_TIME_REMAINING = "Cavity_TimeStatusEstTimeRemaining"
30
+ ATTR_TIME_REMAINING = "Cavity_TimeStatusEstTimeRemaining"
31
31
ATTR_DRUM_LIGHT_ON = "Cavity_DisplaySetDrumLightOn"
32
32
33
33
ATTR_EXTRA_POWER_CHANGEABLE = "Cavity_ChangeStatusExtraPowerChangeable"
@@ -233,8 +233,8 @@ def get_machine_state(self) -> MachineState | None:
233
233
def get_door_open (self ) -> bool | None :
234
234
return self .attr_value_to_bool (self ._get_attribute (ATTR_DOOR_OPEN ))
235
235
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 )
238
238
239
239
def get_drum_light_on (self ) -> bool | None :
240
240
return self .attr_value_to_bool (self ._get_attribute (ATTR_DRUM_LIGHT_ON ))
You can’t perform that action at this time.
0 commit comments