mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +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 hashlib
|
||||
from random import SystemRandom
|
||||
from typing import Deque
|
||||
|
||||
import attr
|
||||
from aiohttp import web
|
||||
@ -315,7 +314,7 @@ class Camera(Entity):
|
||||
"""Initialize a camera."""
|
||||
self.is_streaming = False
|
||||
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()
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user