From e824bc4c558d0168b6096f309691d7a08da0c4fa Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Sep 2015 19:21:33 +0200 Subject: [PATCH] Update docstring (config file) and attempt to honor PEP0257 --- .../components/light/limitlessled.py | 5 ++--- homeassistant/components/light/vera.py | 19 +++++++++---------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/homeassistant/components/light/limitlessled.py b/homeassistant/components/light/limitlessled.py index 8fdb525d4e0..9096bb32a10 100644 --- a/homeassistant/components/light/limitlessled.py +++ b/homeassistant/components/light/limitlessled.py @@ -15,7 +15,7 @@ Support for LimitlessLED bulbs, also known as... Configuration: To use limitlessled you will need to add the following to your -config/configuration.yaml. +configuration.yaml file. light: platform: limitlessled @@ -24,7 +24,6 @@ light: group_2_name: Bedroom group_3_name: Office group_4_name: Kitchen - """ import logging @@ -107,7 +106,7 @@ class LimitlessLED(Light): return self._xy_color def _xy_to_led_color(self, xy_color): - """ Convert an XY color to the closest LedController color string """ + """ Convert an XY color to the closest LedController color string. """ def abs_dist_squared(p_0, p_1): """ Returns the absolute value of the squared distance """ return abs((p_0[0] - p_1[0])**2 + (p_0[1] - p_1[1])**2) diff --git a/homeassistant/components/light/vera.py b/homeassistant/components/light/vera.py index f25c110cc46..ab52905308b 100644 --- a/homeassistant/components/light/vera.py +++ b/homeassistant/components/light/vera.py @@ -1,7 +1,6 @@ """ homeassistant.components.light.vera ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Support for Vera lights. This component is useful if you wish for switches connected to your Vera controller to appear as lights in Home Assistant. All switches will be added as a light unless you exclude them in the config. @@ -9,17 +8,17 @@ All switches will be added as a light unless you exclude them in the config. Configuration: To use the Vera lights you will need to add something like the following to -your config/configuration.yaml. +your configuration.yaml file. light: - platform: vera - vera_controller_url: http://YOUR_VERA_IP:3480/ - device_data: - 12: - name: My awesome switch - exclude: true - 13: - name: Another switch + platform: vera + vera_controller_url: http://YOUR_VERA_IP:3480/ + device_data: + 12: + name: My awesome switch + exclude: true + 13: + name: Another switch Variables: