Async syntax 3/8 (#17017)
* Async syntax 3, device_tracker & fan & hassio & image_processing & input * Pylint fixes
This commit is contained in:
parent
134eeecd65
commit
b24f9f5dfa
23 changed files with 194 additions and 286 deletions
|
@ -4,7 +4,6 @@ Local optical character recognition processing of seven segments displays.
|
|||
For more details about this platform, please refer to the documentation at
|
||||
https://home-assistant.io/components/image_processing.seven_segments/
|
||||
"""
|
||||
import asyncio
|
||||
import logging
|
||||
import io
|
||||
import os
|
||||
|
@ -44,9 +43,8 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||
})
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def async_setup_platform(hass, config, async_add_entities,
|
||||
discovery_info=None):
|
||||
async def async_setup_platform(hass, config, async_add_entities,
|
||||
discovery_info=None):
|
||||
"""Set up the Seven segments OCR platform."""
|
||||
entities = []
|
||||
for camera in config[CONF_SOURCE]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue