mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 05:13:40 +00:00
fix
This commit is contained in:
parent
fe2bad218f
commit
f4a8d68937
1 changed files with 3 additions and 3 deletions
6
.github/copilot-instructions.md
vendored
6
.github/copilot-instructions.md
vendored
|
|
@ -24,7 +24,7 @@ This repository contains a **custom component for Home Assistant**, intended to
|
||||||
- Avoid third-party or custom libraries unless absolutely necessary
|
- Avoid third-party or custom libraries unless absolutely necessary
|
||||||
- Never assume static local file paths — use config options and relative paths
|
- Never assume static local file paths — use config options and relative paths
|
||||||
|
|
||||||
## Coding Style
|
## Coding Style Policy
|
||||||
|
|
||||||
- Follow **PEP8**, enforced by **Black**, **isort**, and **Ruff**
|
- Follow **PEP8**, enforced by **Black**, **isort**, and **Ruff**
|
||||||
- Use **type hints** on all function and method signatures
|
- Use **type hints** on all function and method signatures
|
||||||
|
|
@ -33,7 +33,7 @@ This repository contains a **custom component for Home Assistant**, intended to
|
||||||
- Do not use `print()` — use `_LOGGER` for logging
|
- Do not use `print()` — use `_LOGGER` for logging
|
||||||
- YAML examples must be **valid**, **minimal**, and **Home Assistant compliant**
|
- YAML examples must be **valid**, **minimal**, and **Home Assistant compliant**
|
||||||
|
|
||||||
## Code Structure and Ordering
|
## Code Structure and Ordering Policy
|
||||||
|
|
||||||
Use the following order inside Python modules:
|
Use the following order inside Python modules:
|
||||||
|
|
||||||
|
|
@ -137,7 +137,7 @@ Only create these files if explicitly required by your integration features. Not
|
||||||
|
|
||||||
> ⚠️ **Copilot tip**: Avoid Core-only files (`device_action.py`, `device_trigger.py`, `device_condition.py`, `strings.json`) for Custom Integrations. These are typically not supported or rarely used.
|
> ⚠️ **Copilot tip**: Avoid Core-only files (`device_action.py`, `device_trigger.py`, `device_condition.py`, `strings.json`) for Custom Integrations. These are typically not supported or rarely used.
|
||||||
|
|
||||||
## Linting and Code Quality
|
## Linting and Code Quality Policy
|
||||||
|
|
||||||
- Enforced by **Ruff**, which runs:
|
- Enforced by **Ruff**, which runs:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue