Make services yield (#4187)

* Make services yield

* Disable pylint abstract-method check

* add input_select

* add input_slider

* change to async vers.

* fix lint

* yield on add_entities as other components does
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2016-11-03 18:32:14 -07:00
1 parent 15dde7925a
commit ee5f228309
75 files changed
+108 -131

No files matched your search

@@ -40,7 +40,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
class LastfmSensor(Entity):
"""A class for the Last.fm account."""
# pylint: disable=abstract-method
def __init__(self, user, lastfm):
"""Initialize the sensor."""
self._user = lastfm.get_user(user)
@@ -37,7 +37,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
class SteamSensor(Entity):
"""A class for the Steam account."""
# pylint: disable=abstract-method
def __init__(self, account, steamod):
"""Initialize the sensor."""
self._steamod = steamod
@@ -43,7 +43,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
class SupervisorProcessSensor(Entity):
"""Representation of a supervisor-monitored process."""
# pylint: disable=abstract-method
def __init__(self, info, server):
"""Initialize the sensor."""
self._info = info
@@ -42,7 +42,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
class TwitchSensor(Entity):
"""Representation of an Twitch channel."""
# pylint: disable=abstract-method
def __init__(self, channel):
"""Initialize the sensor."""
self._channel = channel