feat: First try to fetch data #8
Annotations
10 errors
🚀 Run ruff linter:
custom_components/aliexpress_openplatform/__init__.py#L6
custom_components/aliexpress_openplatform/__init__.py:6:1: I001 Import block is un-sorted or un-formatted
|
🚀 Run ruff linter:
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
|
🚀 Run ruff linter:
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
|
🚀 Run ruff linter:
custom_components/aliexpress_openplatform/sensor.py#L3
custom_components/aliexpress_openplatform/sensor.py:3:1: I001 Import block is un-sorted or un-formatted
|
🚀 Run ruff linter:
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
|
🚀 Run ruff linter:
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
|
🚀 Run ruff linter:
custom_components/aliexpress_openplatform/sensor.py#L75
custom_components/aliexpress_openplatform/sensor.py:75:13: TRY400 Use `logging.exception` instead of `logging.error`
|
🚀 Run ruff linter:
custom_components/aliexpress_openplatform/sensor.py#L76
custom_components/aliexpress_openplatform/sensor.py:76:19: TRY003 Avoid specifying long messages outside the exception class
|
🚀 Run ruff linter:
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
|
🚀 Run ruff linter:
custom_components/aliexpress_openplatform/sensor.py#L79
custom_components/aliexpress_openplatform/sensor.py:79:13: TRY400 Use `logging.exception` instead of `logging.error`
|
Loading