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:
parent
8c89e260df
commit
39264af310
2 changed files with 4 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue