Make platform setup a coroutine (#22620)

* make setup_platform a coroutine

* Update homeassistant/components/tellduslive/sensor.py

Co-Authored-By: fredrike <fredrik.e@gmail.com>
This commit is contained in:
Fredrik Erlandsson authored and Rohan Kapoor committed 2019-04-01 10:01:31 -07:00
1 parent 1e96d69688
commit 0056fcf904
8 files changed
+16 -8

No files matched your search

@@ -10,7 +10,8 @@ from .entry import TelldusLiveEntity
_LOGGER = logging.getLogger(__name__)
def setup_platform(hass, config, add_entities, discovery_info=None):
async def async_setup_platform(
hass, config, async_add_entities, discovery_info=None):
"""Old way of setting up TelldusLive.
Can only be called when a user accidentally mentions the platform in their