Move imports to top for opple (#29372)
This commit is contained in:
1 parent
eef91f843d
commit
f8ffcd6caf
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user