mirror of
https://github.com/home-assistant/core.git
synced 2025-08-24 23:11:36 +02:00
Fix pylint errors
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@@ -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
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user