From b30f411154008d7fdffa184d72a0543b05aced05 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 25 Oct 2020 15:46:49 +0100 Subject: [PATCH 1/2] Deprecate ptvsd integration --- homeassistant/components/ptvsd/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/homeassistant/components/ptvsd/__init__.py b/homeassistant/components/ptvsd/__init__.py index 55cef1405d92..e18f377c72af 100644 --- a/homeassistant/components/ptvsd/__init__.py +++ b/homeassistant/components/ptvsd/__init__.py @@ -36,6 +36,10 @@ async def async_setup(hass: HomeAssistantType, config: ConfigType): """Set up ptvsd debugger.""" + _LOGGER.warning( + "ptvsd is deprecated and will be removed in Home Assistant Core 0.120." + "The debugpy integration can be used as a full replacement for ptvsd." + ) # This is a local import, since importing this at the top, will cause # ptvsd to hook into `sys.settrace`. So does `coverage` to generate From 63e1e892fd0ada1b18855162447db86a402f0636 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 26 Oct 2020 11:13:10 +0100 Subject: [PATCH 2/2] Update homeassistant/components/ptvsd/__init__.py --- homeassistant/components/ptvsd/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/ptvsd/__init__.py b/homeassistant/components/ptvsd/__init__.py index e18f377c72af..258589084a0a 100644 --- a/homeassistant/components/ptvsd/__init__.py +++ b/homeassistant/components/ptvsd/__init__.py @@ -38,7 +38,7 @@ async def async_setup(hass: HomeAssistantType, config: ConfigType): """Set up ptvsd debugger.""" _LOGGER.warning( "ptvsd is deprecated and will be removed in Home Assistant Core 0.120." - "The debugpy integration can be used as a full replacement for ptvsd." + "The debugpy integration can be used as a full replacement for ptvsd" ) # This is a local import, since importing this at the top, will cause