Fix pylint errors

This commit is contained in:
Michael Kowalchuk
2021-11-14 22:19:17 -08:00
parent 0374474afe
commit 399ff56ce2
2 changed files with 2 additions and 1 deletions

View File

@@ -264,6 +264,7 @@ class FanSpeedDataTemplate:
Values should indicate the highest allowed device setting for each Values should indicate the highest allowed device setting for each
actual speed. actual speed.
""" """
# pylint: disable=no-self-use
return None return None

View File

@@ -153,7 +153,7 @@ class ConfiguredSpeedRangeZwaveFan(ZwaveFan):
elif percentage == 0: elif percentage == 0:
zwave_speed = 0 zwave_speed = 0
else: else:
assert percentage >= 0 and percentage <= 100 assert 0 <= percentage <= 100
zwave_speed = self.speed_configuration[ zwave_speed = self.speed_configuration[
math.ceil(percentage / self.percentage_step) - 1 math.ceil(percentage / self.percentage_step) - 1
] ]