Use Final type only when needed in Tractive (#57000)
This commit is contained in:
parent
1488019cd9
commit
946a265c9e
6 changed files with 27 additions and 28 deletions
|
@ -3,7 +3,7 @@ from __future__ import annotations
|
|||
|
||||
from dataclasses import dataclass
|
||||
import logging
|
||||
from typing import Any, Final, Literal, cast
|
||||
from typing import Any, Literal, cast
|
||||
|
||||
from aiotractive.exceptions import TractiveError
|
||||
|
||||
|
@ -26,7 +26,7 @@ from .const import (
|
|||
)
|
||||
from .entity import TractiveEntity
|
||||
|
||||
_LOGGER: Final = logging.getLogger(__name__)
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@dataclass
|
||||
|
@ -43,7 +43,7 @@ class TractiveSwitchEntityDescription(
|
|||
"""Class describing Tractive switch entities."""
|
||||
|
||||
|
||||
SWITCH_TYPES: Final[tuple[TractiveSwitchEntityDescription, ...]] = (
|
||||
SWITCH_TYPES: tuple[TractiveSwitchEntityDescription, ...] = (
|
||||
TractiveSwitchEntityDescription(
|
||||
key=ATTR_BUZZER,
|
||||
name="Tracker Buzzer",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue