Move imports to top for thinkingcleaner (#29110)
This commit is contained in:
1 parent
23d4445de3
commit
c221fc5d22
2 files changed
+8
-6
No files matched your search
@@ -1,6 +1,8 @@
|
||||
"""Support for ThinkingCleaner sensors."""
|
||||
import logging
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
from pythinkingcleaner import Discovery
|
||||
|
||||
from homeassistant import util
|
||||
from homeassistant.helpers.entity import Entity
|
||||
@@ -46,7 +48,6 @@ STATES = {
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the ThinkingCleaner platform."""
|
||||
from pythinkingcleaner import Discovery
|
||||
|
||||
discovery = Discovery()
|
||||
devices = discovery.discover()
|
||||
|
||||
Reference in new issue
Block a user