mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +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."""
|
"""Support for the Opple light."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from pyoppleio.OppleLightDevice import OppleLightDevice
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.light import (
|
from homeassistant.components.light import (
|
||||||
@ -46,7 +47,6 @@ class OppleLight(Light):
|
|||||||
|
|
||||||
def __init__(self, name, host):
|
def __init__(self, name, host):
|
||||||
"""Initialize an Opple light."""
|
"""Initialize an Opple light."""
|
||||||
from pyoppleio.OppleLightDevice import OppleLightDevice
|
|
||||||
|
|
||||||
self._device = OppleLightDevice(host)
|
self._device = OppleLightDevice(host)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user