mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Move imports to top for opple (#29372)
This commit is contained in:
parent
eef91f843d
commit
f8ffcd6caf
@ -1,6 +1,7 @@
|
||||
"""Support for the Opple light."""
|
||||
import logging
|
||||
|
||||
from pyoppleio.OppleLightDevice import OppleLightDevice
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.light import (
|
||||
@ -46,7 +47,6 @@ class OppleLight(Light):
|
||||
|
||||
def __init__(self, name, host):
|
||||
"""Initialize an Opple light."""
|
||||
from pyoppleio.OppleLightDevice import OppleLightDevice
|
||||
|
||||
self._device = OppleLightDevice(host)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user