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:
1 parent
15dde7925a
commit
ee5f228309
75 files changed
+108
-131
No files matched your search
@@ -108,7 +108,7 @@ def setup(hass, config):
|
||||
class SwitchDevice(ToggleEntity):
|
||||
"""Representation of a switch."""
|
||||
|
||||
# pylint: disable=no-self-use, abstract-method
|
||||
# pylint: disable=no-self-use
|
||||
@property
|
||||
def current_power_mwh(self):
|
||||
"""Return the current power usage in mWh."""
|
||||
|
||||
Reference in new issue
Block a user