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

@ -4,7 +4,7 @@ from __future__ import annotations
import asyncio
from dataclasses import dataclass
import logging
from typing import Any, Final, List, cast
from typing import Any, List, cast
import aiotractive
@ -37,10 +37,10 @@ from .const import (
TRACKER_POSITION_UPDATED,
)
PLATFORMS: Final = ["binary_sensor", "device_tracker", "sensor", "switch"]
PLATFORMS = ["binary_sensor", "device_tracker", "sensor", "switch"]
_LOGGER: Final = logging.getLogger(__name__)
_LOGGER = logging.getLogger(__name__)
@dataclass