diff --git a/homeassistant/components/light/hue.py b/homeassistant/components/light/hue.py index 6efce68d031..e53fd1fa25d 100644 --- a/homeassistant/components/light/hue.py +++ b/homeassistant/components/light/hue.py @@ -159,7 +159,8 @@ class HueLight(ToggleDevice): if self.is_on: attr[ATTR_BRIGHTNESS] = self.info['state']['bri'] - attr[ATTR_XY_COLOR] = self.info['state']['xy'] + if 'xy' in self.info['state']: + attr[ATTR_XY_COLOR] = self.info['state']['xy'] return attr