Skip to content

Commit 19d4a8a

Browse files
committed
pre-commit
1 parent af04a7c commit 19d4a8a

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

bellows/ezsp/v13/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
""""EZSP Protocol version 13 protocol handler."""
22
from __future__ import annotations
33

4+
from collections.abc import AsyncGenerator, Iterable
45
import logging
5-
from typing import AsyncGenerator, Iterable
66

77
import voluptuous as vol
88
from zigpy.exceptions import NetworkNotFormed

bellows/ezsp/v14/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""""EZSP Protocol version 14 protocol handler."""
22
from __future__ import annotations
33

4-
from typing import AsyncGenerator
4+
from collections.abc import AsyncGenerator
55

66
import voluptuous as vol
77
from zigpy.exceptions import NetworkNotFormed

bellows/ezsp/v5/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
""""EZSP Protocol version 5 protocol handler."""
22
from __future__ import annotations
33

4+
from collections.abc import AsyncGenerator
45
import logging
5-
from typing import AsyncGenerator
66

77
import voluptuous as vol
88

bellows/ezsp/v7/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
""""EZSP Protocol version 7 protocol handler."""
22
from __future__ import annotations
33

4+
from collections.abc import AsyncGenerator
45
import logging
5-
from typing import AsyncGenerator
66

77
import voluptuous
88

bellows/ezsp/v8/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
""""EZSP Protocol version 8 protocol handler."""
22
import asyncio
33
import logging
4-
from typing import Tuple
54

65
import voluptuous
76

@@ -30,7 +29,7 @@ def _ezsp_frame_tx(self, name: str) -> bytes:
3029
hdr = [self._seq, 0x00, 0x01]
3130
return bytes(hdr) + t.uint16_t(cmd_id).serialize()
3231

33-
def _ezsp_frame_rx(self, data: bytes) -> Tuple[int, int, bytes]:
32+
def _ezsp_frame_rx(self, data: bytes) -> tuple[int, int, bytes]:
3433
"""Handler for received data frame."""
3534
seq, data = data[0], data[3:]
3635
frame_id, data = t.uint16_t.deserialize(data)

0 commit comments

Comments
 (0)