From dc72aa48da3e8d64e7aa27e12c0d61802f81121d Mon Sep 17 00:00:00 2001 From: Quentame Date: Thu, 17 Oct 2019 15:00:32 +0200 Subject: [PATCH] Move imports in liveboxplaytv component (#27790) --- homeassistant/components/liveboxplaytv/media_player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/liveboxplaytv/media_player.py b/homeassistant/components/liveboxplaytv/media_player.py index c466d71c4c5..996b4f33b50 100644 --- a/homeassistant/components/liveboxplaytv/media_player.py +++ b/homeassistant/components/liveboxplaytv/media_player.py @@ -2,6 +2,8 @@ from datetime import timedelta import logging +from liveboxplaytv import LiveboxPlayTv +import pyteleloisirs import requests import voluptuous as vol @@ -85,7 +87,6 @@ class LiveboxPlayTvDevice(MediaPlayerDevice): def __init__(self, host, port, name): """Initialize the Livebox Play TV device.""" - from liveboxplaytv import LiveboxPlayTv self._client = LiveboxPlayTv(host, port) # Assume that the appliance is not muted @@ -103,7 +104,6 @@ class LiveboxPlayTvDevice(MediaPlayerDevice): async def async_update(self): """Retrieve the latest data.""" - import pyteleloisirs try: self._state = self.refresh_state()