Use Final type only when needed in Tractive (#57000)

This commit is contained in:
Maciej Bieniek 2021-10-03 22:12:59 +02:00 committed by GitHub
parent 1488019cd9
commit 946a265c9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 27 additions and 28 deletions

View file

@ -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",