Skip to content

Commit 85920c7

Browse files
committed
Tell ruff that Union actually is used
1 parent 5e58e41 commit 85920c7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

homeassistant_api/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import re
21
import os
3-
from typing import TYPE_CHECKING, Optional, Union
2+
import re
3+
from typing import TYPE_CHECKING, Optional, Union # noqa: F401
44

55
from typing_extensions import TypeAliasType
66

@@ -10,7 +10,7 @@
1010
)
1111
else:
1212
JSONType = type("JSONType", (object,), {})
13-
13+
1414

1515
def format_entity_id(entity_id: str) -> str:
1616
"""Takes in a string and formats it into valid snake_case."""

0 commit comments

Comments
 (0)