mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Remove reference to typing.Deque (added in Python 3.6.1) (#26030)
* Remove reference to typing.Deque (added in Python 3.6.1) * Silence mypy * Type as collections.deque
This commit is contained in:
parent
1077ec1704
commit
a38bdc4deb
@ -7,7 +7,6 @@ from datetime import timedelta
|
|||||||
import logging
|
import logging
|
||||||
import hashlib
|
import hashlib
|
||||||
from random import SystemRandom
|
from random import SystemRandom
|
||||||
from typing import Deque
|
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
from aiohttp import web
|
from aiohttp import web
|
||||||
@ -315,7 +314,7 @@ class Camera(Entity):
|
|||||||
"""Initialize a camera."""
|
"""Initialize a camera."""
|
||||||
self.is_streaming = False
|
self.is_streaming = False
|
||||||
self.content_type = DEFAULT_CONTENT_TYPE
|
self.content_type = DEFAULT_CONTENT_TYPE
|
||||||
self.access_tokens: Deque[str] = collections.deque([], 2)
|
self.access_tokens: collections.deque = collections.deque([], 2)
|
||||||
self.async_update_token()
|
self.async_update_token()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user