From 39264af310255b0bd011a07fa754d0874a0adcf6 Mon Sep 17 00:00:00 2001 From: Teemu R Date: Sat, 13 Apr 2019 17:50:21 -0400 Subject: [PATCH] Add missing async for tplink's async_setup_platform methods (#23066) * add missing async for tplink's async_setup_platform methods thanks to @MartinHjelmare for spotting this, related to #21916 * fix line lengths --- homeassistant/components/tplink/light.py | 3 ++- homeassistant/components/tplink/switch.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/tplink/light.py b/homeassistant/components/tplink/light.py index 6fa795bcafc..dc2fcce949a 100644 --- a/homeassistant/components/tplink/light.py +++ b/homeassistant/components/tplink/light.py @@ -21,7 +21,8 @@ ATTR_DAILY_ENERGY_KWH = 'daily_energy_kwh' ATTR_MONTHLY_ENERGY_KWH = 'monthly_energy_kwh' -def async_setup_platform(hass, config, add_entities, discovery_info=None): +async def async_setup_platform(hass, config, add_entities, + discovery_info=None): """Set up the platform. Deprecated. diff --git a/homeassistant/components/tplink/switch.py b/homeassistant/components/tplink/switch.py index 3040b52cd22..a3d680a0a50 100644 --- a/homeassistant/components/tplink/switch.py +++ b/homeassistant/components/tplink/switch.py @@ -17,7 +17,8 @@ ATTR_TOTAL_ENERGY_KWH = 'total_energy_kwh' ATTR_CURRENT_A = 'current_a' -def async_setup_platform(hass, config, add_entities, discovery_info=None): +async def async_setup_platform(hass, config, add_entities, + discovery_info=None): """Set up the platform. Deprecated.