diff --git a/homeassistant/components/frontend/www_static/home-assistant-polymer b/homeassistant/components/frontend/www_static/home-assistant-polymer index 378f9cc5eb2..576c04efb49 160000 --- a/homeassistant/components/frontend/www_static/home-assistant-polymer +++ b/homeassistant/components/frontend/www_static/home-assistant-polymer @@ -1 +1 @@ -Subproject commit 378f9cc5eb2cc81ed07d9bc79e7726fe228ca6da +Subproject commit 576c04efb49a8a5f7f35734458ffc93f874dd68d diff --git a/homeassistant/components/light/limitlessled.py b/homeassistant/components/light/limitlessled.py index 69d82f59c1e..e4eb588688c 100644 --- a/homeassistant/components/light/limitlessled.py +++ b/homeassistant/components/light/limitlessled.py @@ -104,6 +104,7 @@ class LimitlessLED(Light): def _xy_to_led_color(self, xy_color): """ 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) candidates = [(abs_dist_squared(xy_color, x[0]), x[1]) for x in