mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
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
@ -21,7 +21,8 @@ ATTR_DAILY_ENERGY_KWH = 'daily_energy_kwh'
|
|||||||
ATTR_MONTHLY_ENERGY_KWH = 'monthly_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.
|
"""Set up the platform.
|
||||||
|
|
||||||
Deprecated.
|
Deprecated.
|
||||||
|
@ -17,7 +17,8 @@ ATTR_TOTAL_ENERGY_KWH = 'total_energy_kwh'
|
|||||||
ATTR_CURRENT_A = 'current_a'
|
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.
|
"""Set up the platform.
|
||||||
|
|
||||||
Deprecated.
|
Deprecated.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user