Async syntax 8/8 (#17022)

* Async syntax 8

* Pylint fixes
This commit is contained in:
cdce8p 2018-10-01 08:52:42 +02:00 committed by Paulus Schoutsen
parent ea7b1e4573
commit 9aaf11de8c
54 changed files with 223 additions and 382 deletions

View file

@ -1,5 +1,4 @@
"""Implementation of a base class for all IHC devices."""
import asyncio
from homeassistant.helpers.entity import Entity
@ -28,8 +27,7 @@ class IHCDevice(Entity):
self.ihc_note = ''
self.ihc_position = ''
@asyncio.coroutine
def async_added_to_hass(self):
async def async_added_to_hass(self):
"""Add callback for IHC changes."""
self.ihc_controller.add_notify_event(
self.ihc_id, self.on_ihc_change, True)