From 4cded9782dc7932c8b88fadad7e333540f4025e3 Mon Sep 17 00:00:00 2001 From: bouni Date: Sat, 12 Oct 2019 21:50:30 +0200 Subject: [PATCH] moved imports to top level (#27498) --- homeassistant/components/axis/device.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/axis/device.py b/homeassistant/components/axis/device.py index 3b91f7e1474..e42a758f3c4 100644 --- a/homeassistant/components/axis/device.py +++ b/homeassistant/components/axis/device.py @@ -3,6 +3,9 @@ import asyncio import async_timeout +import axis +from axis.streammanager import SIGNAL_PLAYING + from homeassistant.const import ( CONF_DEVICE, CONF_HOST, @@ -140,7 +143,6 @@ class AxisNetworkDevice: This is called on every RTSP keep-alive message. Only signal state change if state change is true. """ - from axis.streammanager import SIGNAL_PLAYING if self.available != (status == SIGNAL_PLAYING): self.available = not self.available @@ -198,7 +200,6 @@ class AxisNetworkDevice: async def get_device(hass, config): """Create a Axis device.""" - import axis device = axis.AxisDevice( loop=hass.loop,