Some small changes
This commit is contained in:
parent
e311f89056
commit
e23db5d972
1 changed files with 2 additions and 3 deletions
|
@ -47,7 +47,7 @@ def setup(hass, config): # pylint: disable=too-many-locals,too-many-statements
|
|||
for variable in config[DOMAIN]['devices']:
|
||||
proximity_devices.append(variable)
|
||||
|
||||
# Gget the direction of travel tolerance from configuration.yaml
|
||||
# Get the direction of travel tolerance from configuration.yaml
|
||||
tolerance = config[DOMAIN].get('tolerance', DEFAULT_TOLERANCE)
|
||||
|
||||
# Get the zone to monitor proximity to from configuration.yaml
|
||||
|
@ -75,7 +75,6 @@ def setup(hass, config): # pylint: disable=too-many-locals,too-many-statements
|
|||
track_state_change(hass, proximity_devices,
|
||||
proximity.check_proximity_state_change)
|
||||
|
||||
# Tells the bootstrapper that the component was successfully initialized
|
||||
return True
|
||||
|
||||
|
||||
|
@ -102,7 +101,7 @@ class Proximity(Entity): # pylint: disable=too-many-instance-attributes
|
|||
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
""" Unit of measurement of this entity """
|
||||
""" Unit of measurement of this entity. """
|
||||
return "km"
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Reference in a new issue