diff --git a/homeassistant/components/tplink/light.py b/homeassistant/components/tplink/light.py index 6fa795bcafcad5..dc2fcce949a5ad 100644 --- a/homeassistant/components/tplink/light.py +++ b/homeassistant/components/tplink/light.py @@ -21,7 +21,8 @@ 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 3040b52cd2245b..a3d680a0a50186 100644 --- a/homeassistant/components/tplink/switch.py +++ b/homeassistant/components/tplink/switch.py @@ -17,7 +17,8 @@ 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.