Skip to content

Commit 888f557

Browse files
committed
unused
1 parent c2a69d1 commit 888f557

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

zha/application/websocket_api.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import asyncio
66
import logging
7-
from typing import TYPE_CHECKING, Annotated, Any, Literal, TypeVar, Union, cast
7+
from typing import TYPE_CHECKING, Annotated, Any, Literal, TypeVar, Union
88

99
from pydantic import Field
1010
from zigpy.types.named import EUI64
@@ -35,13 +35,6 @@
3535
T = TypeVar("T")
3636

3737

38-
def ensure_list(value: T | None) -> list[T] | list[Any]:
39-
"""Wrap value in list if it is not one."""
40-
if value is None:
41-
return []
42-
return cast("list[T]", value) if isinstance(value, list) else [value]
43-
44-
4538
class StartNetworkCommand(WebSocketCommand):
4639
"""Start the Zigbee network."""
4740

0 commit comments

Comments
 (0)