mirror of
https://github.com/home-assistant/core.git
synced 2025-08-24 15:01: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
|
||||
actual speed.
|
||||
"""
|
||||
# pylint: disable=no-self-use
|
||||
return None
|
||||
|
||||
|
||||
|
@@ -153,7 +153,7 @@ class ConfiguredSpeedRangeZwaveFan(ZwaveFan):
|
||||
elif percentage == 0:
|
||||
zwave_speed = 0
|
||||
else:
|
||||
assert percentage >= 0 and percentage <= 100
|
||||
assert 0 <= percentage <= 100
|
||||
zwave_speed = self.speed_configuration[
|
||||
math.ceil(percentage / self.percentage_step) - 1
|
||||
]
|
||||
|
Reference in New Issue
Block a user