mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02: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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user