Platinum quality on Teslemetry (#115191)

pull/116242/head
Brett Adams 2024-06-22 16:56:50 +10:00 committed by GitHub
parent 47587ee3fb
commit cb78caf455
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 25 additions and 0 deletions

View File

@ -26,6 +26,8 @@ from .entity import (
)
from .models import TeslemetryEnergyData, TeslemetryVehicleData
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class TeslemetryBinarySensorEntityDescription(BinarySensorEntityDescription):

View File

@ -17,6 +17,8 @@ from .entity import TeslemetryVehicleEntity
from .helpers import handle_vehicle_command
from .models import TeslemetryVehicleData
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class TeslemetryButtonEntityDescription(ButtonEntityDescription):

View File

@ -32,6 +32,8 @@ from .models import TeslemetryVehicleData
DEFAULT_MIN_TEMP = 15
DEFAULT_MAX_TEMP = 28
PARALLEL_UPDATES = 0
async def async_setup_entry(
hass: HomeAssistant,

View File

@ -23,6 +23,8 @@ from .models import TeslemetryVehicleData
OPEN = 1
CLOSED = 0
PARALLEL_UPDATES = 0
async def async_setup_entry(
hass: HomeAssistant,

View File

@ -11,6 +11,8 @@ from . import TeslemetryConfigEntry
from .entity import TeslemetryVehicleEntity
from .models import TeslemetryVehicleData
PARALLEL_UPDATES = 0
async def async_setup_entry(
hass: HomeAssistant,

View File

@ -19,6 +19,8 @@ from .models import TeslemetryVehicleData
ENGAGED = "Engaged"
PARALLEL_UPDATES = 0
async def async_setup_entry(
hass: HomeAssistant,

View File

@ -6,5 +6,6 @@
"documentation": "https://www.home-assistant.io/integrations/teslemetry",
"iot_class": "cloud_polling",
"loggers": ["tesla-fleet-api"],
"quality_scale": "platinum",
"requirements": ["tesla-fleet-api==0.6.1"]
}

View File

@ -27,6 +27,8 @@ STATES = {
VOLUME_MAX = 11.0
VOLUME_STEP = 1.0 / 3
PARALLEL_UPDATES = 0
async def async_setup_entry(
hass: HomeAssistant,

View File

@ -26,6 +26,8 @@ from .entity import TeslemetryEnergyInfoEntity, TeslemetryVehicleEntity
from .helpers import handle_command, handle_vehicle_command
from .models import TeslemetryEnergyData, TeslemetryVehicleData
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class TeslemetryNumberVehicleEntityDescription(NumberEntityDescription):

View File

@ -22,6 +22,8 @@ LOW = "low"
MEDIUM = "medium"
HIGH = "high"
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class SeatHeaterDescription(SelectEntityDescription):

View File

@ -42,6 +42,8 @@ from .entity import (
)
from .models import TeslemetryEnergyData, TeslemetryVehicleData
PARALLEL_UPDATES = 0
CHARGE_STATES = {
"Starting": "starting",
"Charging": "charging",

View File

@ -22,6 +22,8 @@ from .entity import TeslemetryEnergyInfoEntity, TeslemetryVehicleEntity
from .helpers import handle_command, handle_vehicle_command
from .models import TeslemetryEnergyData, TeslemetryVehicleData
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class TeslemetrySwitchEntityDescription(SwitchEntityDescription):

View File

@ -21,6 +21,8 @@ INSTALLING = "installing"
WIFI_WAIT = "downloading_wifi_wait"
SCHEDULED = "scheduled"
PARALLEL_UPDATES = 0
async def async_setup_entry(
hass: HomeAssistant,