mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Move imports to top for opple (#29372)
This commit is contained in:
committed by
Alexei Chetroi
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)
|
||||
|
||||
|
Reference in New Issue
Block a user