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
This commit is contained in:
Teemu R 2019-04-13 17:50:21 -04:00 committed by Martin Hjelmare
parent 8c89e260df
commit 39264af310
2 changed files with 4 additions and 2 deletions

View file

@ -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.

View file

@ -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.