Skip to content

feat: First try to fetch data #8

feat: First try to fetch data

feat: First try to fetch data #8

Triggered via pull request November 15, 2024 10:00
Status Failure
Total duration 23s
Artifacts

ruff.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (I001): custom_components/aliexpress_openplatform/__init__.py#L6
custom_components/aliexpress_openplatform/__init__.py:6:1: I001 Import block is un-sorted or un-formatted
Ruff (TCH001): custom_components/aliexpress_openplatform/__init__.py#L7
custom_components/aliexpress_openplatform/__init__.py:7:42: TCH001 Move application import `homeassistant.config_entries.ConfigEntry` into a type-checking block
Ruff (TCH001): custom_components/aliexpress_openplatform/__init__.py#L8
custom_components/aliexpress_openplatform/__init__.py:8:32: TCH001 Move application import `homeassistant.core.HomeAssistant` into a type-checking block
Ruff (I001): custom_components/aliexpress_openplatform/sensor.py#L3
custom_components/aliexpress_openplatform/sensor.py:3:1: I001 Import block is un-sorted or un-formatted
Ruff (TCH001): custom_components/aliexpress_openplatform/sensor.py#L17
custom_components/aliexpress_openplatform/sensor.py:17:32: TCH001 Move application import `homeassistant.core.HomeAssistant` into a type-checking block
Ruff (TCH001): custom_components/aliexpress_openplatform/sensor.py#L18
custom_components/aliexpress_openplatform/sensor.py:18:51: TCH001 Move application import `homeassistant.helpers.entity_platform.AddEntitiesCallback` into a type-checking block
Ruff (TRY400): custom_components/aliexpress_openplatform/sensor.py#L75
custom_components/aliexpress_openplatform/sensor.py:75:13: TRY400 Use `logging.exception` instead of `logging.error`
Ruff (TRY003): custom_components/aliexpress_openplatform/sensor.py#L76
custom_components/aliexpress_openplatform/sensor.py:76:19: TRY003 Avoid specifying long messages outside the exception class
Ruff (EM102): custom_components/aliexpress_openplatform/sensor.py#L76
custom_components/aliexpress_openplatform/sensor.py:76:32: EM102 Exception must not use an f-string literal, assign to variable first
Ruff (TRY400): custom_components/aliexpress_openplatform/sensor.py#L79
custom_components/aliexpress_openplatform/sensor.py:79:13: TRY400 Use `logging.exception` instead of `logging.error`