Skip to content

Commit

Permalink
[skip ci] Fix annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
denpamusic committed Oct 6, 2023
1 parent 58b5283 commit 7e9f152
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyplumio/devices/ecomax.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ async def _add_thermostat_parameters(
self,
parameters: dict[int, Sequence[tuple[int, ParameterDataType]]] | None,
) -> bool:
"""set thermostat parameters."""
"""Set thermostat parameters."""
if parameters is None:
return False

Expand Down
6 changes: 3 additions & 3 deletions pyplumio/helpers/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,18 @@ def set_state(
start: str = START_OF_DAY,
end: str = END_OF_DAY,
) -> None:
"""set state for interval."""
"""Set state for interval."""
index, stop_index = _parse_interval(start, end)
while index < stop_index:
self._intervals[index] = state == STATE_ON
index += 1

def set_on(self, start: str = START_OF_DAY, end: str = END_OF_DAY) -> None:
"""set on state for interval."""
"""Set on state for interval."""
self.set_state(STATE_ON, start, end)

def set_off(self, start: str = START_OF_DAY, end: str = END_OF_DAY) -> None:
"""set off state for interval."""
"""Set off state for interval."""
self.set_state(STATE_OFF, start, end)

@property
Expand Down
2 changes: 1 addition & 1 deletion pyplumio/structures/ecomax_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class EcomaxParameter(Parameter):
description: EcomaxParameterDescription

async def set(self, value: ParameterValueType, retries: int = 5) -> bool:
"""set parameter value."""
"""Set parameter value."""
if isinstance(value, (int, float)):
value *= self.description.multiplier
value -= self.description.offset
Expand Down
2 changes: 1 addition & 1 deletion pyplumio/structures/mixer_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class MixerParameter(Parameter):
description: MixerParameterDescription

async def set(self, value: ParameterValueType, retries: int = 5) -> bool:
"""set parameter value."""
"""Set parameter value."""
if isinstance(value, (int, float)):
value *= self.description.multiplier
value -= self.description.offset
Expand Down
2 changes: 1 addition & 1 deletion pyplumio/structures/thermostat_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, offset: int, *args, **kwargs):
super().__init__(*args, **kwargs)

async def set(self, value: ParameterValueType, retries: int = 5) -> bool:
"""set parameter value."""
"""Set parameter value."""
if isinstance(value, (int, float)):
value *= self.description.multiplier

Expand Down

0 comments on commit 7e9f152

Please sign in to comment.