mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix lint errors
This commit is contained in:
parent
b6d75e6c5a
commit
0dbc023f5b
@ -103,7 +103,7 @@ def setup(hass, config):
|
|||||||
class InputSlider(Entity):
|
class InputSlider(Entity):
|
||||||
"""Represent an slider."""
|
"""Represent an slider."""
|
||||||
|
|
||||||
# pylint: disable=too-many-arguments
|
# pylint: disable=too-many-arguments, too-many-instance-attributes
|
||||||
def __init__(self, object_id, name, state, minimum, maximum, step, icon,
|
def __init__(self, object_id, name, state, minimum, maximum, step, icon,
|
||||||
unit):
|
unit):
|
||||||
"""Initialize a select input."""
|
"""Initialize a select input."""
|
||||||
@ -138,6 +138,7 @@ class InputSlider(Entity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unit_of_measurement(self):
|
def unit_of_measurement(self):
|
||||||
|
"""Unit of measurement of slider."""
|
||||||
return self._unit
|
return self._unit
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user