Skip to content

Commit

Permalink
Rename to get_remaining_profile_duration
Browse files Browse the repository at this point in the history
  • Loading branch information
yozik04 committed Jun 24, 2024
1 parent 2d3099e commit 24685ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_vallox_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,6 @@ async def test_profiles(
data = await vallox.fetch_metric_data()
assert data.profile == expected_profile

assert data.get_profile_duration(data.profile) == expected_duration
assert data.get_remaining_profile_duration(data.profile) == expected_duration

vallox.fetch_metrics.assert_called_once()
2 changes: 1 addition & 1 deletion vallox_websocket_api/vallox.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def get_fan_speed(self, profile: Profile) -> Optional[int]:
)
return self.get(PROFILE_TO_SET_FAN_SPEED_METRIC_MAP[profile])

def get_profile_duration(self, profile: Profile) -> Optional[int]:
def get_remaining_profile_duration(self, profile: Profile) -> Optional[int]:
if profile == Profile.BOOST:
return self.get("A_CYC_BOOST_TIMER")
if profile == Profile.FIREPLACE:
Expand Down

0 comments on commit 24685ba

Please sign in to comment.