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']:
|
for variable in config[DOMAIN]['devices']:
|
||||||
proximity_devices.append(variable)
|
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)
|
tolerance = config[DOMAIN].get('tolerance', DEFAULT_TOLERANCE)
|
||||||
|
|
||||||
# Get the zone to monitor proximity to from configuration.yaml
|
# 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,
|
track_state_change(hass, proximity_devices,
|
||||||
proximity.check_proximity_state_change)
|
proximity.check_proximity_state_change)
|
||||||
|
|
||||||
# Tells the bootstrapper that the component was successfully initialized
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
@ -102,7 +101,7 @@ class Proximity(Entity): # pylint: disable=too-many-instance-attributes
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def unit_of_measurement(self):
|
def unit_of_measurement(self):
|
||||||
""" Unit of measurement of this entity """
|
""" Unit of measurement of this entity. """
|
||||||
return "km"
|
return "km"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue