load cleanups (#23112)
* load cleanups * Remove unused methods * Allow importing requirements at the top of a file * Fix test * Lint * Install reqs ASAP when loading platforms
This commit is contained in:
parent
4d080f8b17
commit
6a2da9f9a5
8 changed files with 64 additions and 146 deletions
|
@ -5,6 +5,7 @@ import logging
|
|||
from time import monotonic
|
||||
import random
|
||||
|
||||
import aiohue
|
||||
import async_timeout
|
||||
|
||||
from homeassistant.components import hue
|
||||
|
@ -152,8 +153,6 @@ async def async_update_items(hass, bridge, async_add_entities,
|
|||
request_bridge_update, is_group, current,
|
||||
progress_waiting):
|
||||
"""Update either groups or lights from the bridge."""
|
||||
import aiohue
|
||||
|
||||
if is_group:
|
||||
api_type = 'group'
|
||||
api = bridge.api.groups
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue