From f9a019ea828469954c60e295152d39d7d561d9e6 Mon Sep 17 00:00:00 2001 From: vatir Date: Thu, 2 Nov 2017 06:45:02 -0500 Subject: [PATCH] Follow-up: Replace emulated_hue: with emulated_hue_hidden (#9894) When lights in the hue component are used with the emulated hue component ATTR_EMULATED_HUE is still being used, which was deprecated by #9382. This updates ATTR_EMULATED_HUE to ATTR_EMULATED_HUE_HIDDEN to improve consistency and stop the deprecation warnings. --- homeassistant/components/light/hue.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/light/hue.py b/homeassistant/components/light/hue.py index 84917ead37a..feacf34bfe8 100644 --- a/homeassistant/components/light/hue.py +++ b/homeassistant/components/light/hue.py @@ -23,7 +23,7 @@ from homeassistant.components.light import ( SUPPORT_XY_COLOR, Light, PLATFORM_SCHEMA) from homeassistant.config import load_yaml_config_file from homeassistant.const import (CONF_FILENAME, CONF_HOST, DEVICE_DEFAULT_NAME) -from homeassistant.components.emulated_hue import ATTR_EMULATED_HUE +from homeassistant.components.emulated_hue import ATTR_EMULATED_HUE_HIDDEN import homeassistant.helpers.config_validation as cv REQUIREMENTS = ['phue==1.0'] @@ -471,7 +471,8 @@ class HueLight(Light): """Return the device state attributes.""" attributes = {} if not self.allow_in_emulated_hue: - attributes[ATTR_EMULATED_HUE] = self.allow_in_emulated_hue + attributes[ATTR_EMULATED_HUE_HIDDEN] = \ + not self.allow_in_emulated_hue if self.is_group: attributes[ATTR_IS_HUE_GROUP] = self.is_group return attributes