move imports in stream component (#27647)

This commit is contained in:
Michał Mrozek authored and Paulus Schoutsen committed 2019-10-14 14:20:18 -07:00
1 parent 4efa2f3244
commit 9aa28dfd54
9 files changed
+45 -42

No files matched your search

+4 -3
View File
@@ -1,8 +1,11 @@
"""Collection of test helpers."""
import io
import av
import numpy as np
from homeassistant.components.stream import Stream
from homeassistant.components.stream.const import DOMAIN, ATTR_STREAMS
from homeassistant.components.stream.const import ATTR_STREAMS, DOMAIN
def generate_h264_video():
@@ -11,8 +14,6 @@ def generate_h264_video():
See: http://docs.mikeboers.com/pyav/develop/cookbook/numpy.html
"""
import numpy as np
import av
duration = 5
fps = 24