Move imports in slack and socialblade (#27747)
* Moved imports to top-level in samsungtv, slack and socialblade * Rewinded top-level imports in samsungtv component
This commit is contained in:
1 parent
43c85c0549
commit
e79a5baf9e
2 files changed
+5
-7
No files matched your search
@@ -2,6 +2,7 @@
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
import socialbladeclient
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
@@ -71,7 +72,6 @@ class SocialBladeSensor(Entity):
|
||||
@Throttle(MIN_TIME_BETWEEN_UPDATES)
|
||||
def update(self):
|
||||
"""Get the latest data from Social Blade."""
|
||||
import socialbladeclient
|
||||
|
||||
try:
|
||||
data = socialbladeclient.get_data(self.channel_id)
|
||||
|
||||
Reference in new issue
Block a user