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