From 7da84dca76650581acbc3fbb3c9d98e517f0452a Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 16 Jan 2020 11:28:35 -0800 Subject: [PATCH] Reinstate and deprecate filename option for hue config (#30846) --- homeassistant/components/hue/__init__.py | 6 +++++- tests/components/hue/test_init.py | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/hue/__init__.py b/homeassistant/components/hue/__init__.py index 238ea06961d..b294a811c61 100644 --- a/homeassistant/components/hue/__init__.py +++ b/homeassistant/components/hue/__init__.py @@ -44,7 +44,11 @@ CONFIG_SCHEMA = vol.Schema( DOMAIN: vol.Schema( { vol.Optional(CONF_BRIDGES): vol.All( - cv.ensure_list, [BRIDGE_CONFIG_SCHEMA] + cv.ensure_list, + [ + cv.deprecated("filename", invalidation_version="0.106.0"), + vol.All(BRIDGE_CONFIG_SCHEMA), + ], ) } ) diff --git a/tests/components/hue/test_init.py b/tests/components/hue/test_init.py index b48d66990e8..2e147fd097b 100644 --- a/tests/components/hue/test_init.py +++ b/tests/components/hue/test_init.py @@ -33,6 +33,7 @@ async def test_setup_defined_hosts_known_auth(hass): hue.CONF_HOST: "0.0.0.0", hue.CONF_ALLOW_HUE_GROUPS: False, hue.CONF_ALLOW_UNREACHABLE: True, + "filename": "bla", } } }, @@ -49,6 +50,7 @@ async def test_setup_defined_hosts_known_auth(hass): hue.CONF_HOST: "0.0.0.0", hue.CONF_ALLOW_HUE_GROUPS: False, hue.CONF_ALLOW_UNREACHABLE: True, + "filename": "bla", } }