From 5d2d9af8e39f9fcc1c220b362b49a2df2b82437b Mon Sep 17 00:00:00 2001 From: John Arild Berentsen <turbokongen@hotmail.com> Date: Wed, 24 Aug 2016 16:30:14 +0200 Subject: [PATCH] Add deprecated warning to thermostat and hvac (#2962) * Add deprecated warning for thermostat and hvac --- homeassistant/components/hvac/__init__.py | 3 +++ homeassistant/components/thermostat/__init__.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/homeassistant/components/hvac/__init__.py b/homeassistant/components/hvac/__init__.py index abd40a3ac93..ab27af480a7 100644 --- a/homeassistant/components/hvac/__init__.py +++ b/homeassistant/components/hvac/__init__.py @@ -135,6 +135,9 @@ def set_swing_mode(hass, swing_mode, entity_id=None): # pylint: disable=too-many-branches def setup(hass, config): """Setup hvacs.""" + _LOGGER.warning('This component has been deprecated in favour of' + ' the "climate" component and will be removed ' + 'in the future. Please upgrade.') component = EntityComponent(_LOGGER, DOMAIN, hass, SCAN_INTERVAL) component.setup(config) diff --git a/homeassistant/components/thermostat/__init__.py b/homeassistant/components/thermostat/__init__.py index 09a18b91402..a9169ce4756 100644 --- a/homeassistant/components/thermostat/__init__.py +++ b/homeassistant/components/thermostat/__init__.py @@ -115,6 +115,9 @@ def set_hvac_mode(hass, hvac_mode, entity_id=None): # pylint: disable=too-many-branches def setup(hass, config): """Setup thermostats.""" + _LOGGER.warning('This component has been deprecated in favour of' + ' the "climate" component and will be removed ' + 'in the future. Please upgrade.') component = EntityComponent(_LOGGER, DOMAIN, hass, SCAN_INTERVAL) component.setup(config) -- GitLab