mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
moved imports to top level (#27498)
This commit is contained in:
parent
b825631676
commit
4cded9782d
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user