From fea5d007fc20dbc64b25fc0c4a6f05a0f57b8720 Mon Sep 17 00:00:00 2001 From: Eugene Prystupa Date: Thu, 25 Jun 2020 07:20:42 -0400 Subject: [PATCH] Clean up plum_lightpad (#37077) --- homeassistant/components/plum_lightpad/light.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/plum_lightpad/light.py b/homeassistant/components/plum_lightpad/light.py index 4a02e83de76..a94014ff1f9 100644 --- a/homeassistant/components/plum_lightpad/light.py +++ b/homeassistant/components/plum_lightpad/light.py @@ -1,4 +1,5 @@ """Support for Plum Lightpad lights.""" +import asyncio import logging from typing import Callable, List @@ -52,7 +53,7 @@ async def async_setup_entry( setup_entities(device) device_web_session = async_get_clientsession(hass, verify_ssl=False) - hass.loop.create_task( + asyncio.create_task( plum.discover( hass.loop, loadListener=new_load,