mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-05-28 18:43:40 +00:00
Compare commits
8 commits
27ab58bbf5
...
9efa7809d0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9efa7809d0 | ||
|
|
ff08df24e7 | ||
|
|
707e1d47da | ||
|
|
236a15bea4 | ||
|
|
f2a8cd6777 | ||
|
|
9af252fb61 | ||
|
|
4b0aa4a93b | ||
|
|
a54c1353e1 |
6 changed files with 13 additions and 9 deletions
2
.github/workflows/auto-assign.yml
vendored
2
.github/workflows/auto-assign.yml
vendored
|
|
@ -14,7 +14,7 @@ jobs:
|
|||
issues: write
|
||||
steps:
|
||||
- name: Assign issue to owner
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
await github.rest.issues.addAssignees({
|
||||
|
|
|
|||
4
.github/workflows/docusaurus.yml
vendored
4
.github/workflows/docusaurus.yml
vendored
|
|
@ -54,7 +54,7 @@ jobs:
|
|||
|
||||
# VERIFY GENERATED DOCS
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.14'
|
||||
|
||||
|
|
@ -163,7 +163,7 @@ jobs:
|
|||
uses: actions/configure-pages@v6
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v4
|
||||
uses: actions/upload-pages-artifact@v5
|
||||
with:
|
||||
path: ./deploy-root
|
||||
|
||||
|
|
|
|||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -255,7 +255,7 @@ jobs:
|
|||
|
||||
- name: Create GitHub Release
|
||||
if: steps.version_check.outputs.warning == ''
|
||||
uses: softprops/action-gh-release@v2
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
name: ${{ steps.release_notes.outputs.title }}
|
||||
body: ${{ steps.release_notes.outputs.notes }}
|
||||
|
|
|
|||
|
|
@ -65,10 +65,14 @@ def get_icon_color(
|
|||
return BINARY_SENSOR_COLOR_MAPPING[key].get(state_key)
|
||||
|
||||
# Trend sensor colors (based on trend state)
|
||||
if key.startswith("price_trend_") and isinstance(state_value, str):
|
||||
if (
|
||||
key.startswith(("price_trend_", "price_outlook_", "price_trajectory_")) or key == "current_price_trend"
|
||||
) and isinstance(state_value, str):
|
||||
trend_colors = {
|
||||
"strongly_rising": "var(--error-color)",
|
||||
"rising": "var(--error-color)", # Red/Orange for rising prices
|
||||
"falling": "var(--success-color)", # Green for falling prices
|
||||
"strongly_falling": "var(--success-color)",
|
||||
"stable": "var(--state-icon-color)", # Default gray for stable
|
||||
}
|
||||
return trend_colors.get(state_value)
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ def get_trend_icon(key: str, value: Any) -> str | None:
|
|||
if key == "next_price_trend_change":
|
||||
return None # Will be handled by sensor's icon property using attributes
|
||||
|
||||
if not key.startswith("price_trend_") and key != "current_price_trend":
|
||||
if not key.startswith(("price_trend_", "price_outlook_", "price_trajectory_")) and key != "current_price_trend":
|
||||
return None
|
||||
|
||||
if not isinstance(value, str):
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ markers = [
|
|||
|
||||
[project.optional-dependencies]
|
||||
test = [
|
||||
"pytest>=8.0.0",
|
||||
"pytest-asyncio>=0.23.0",
|
||||
"pytest-homeassistant-custom-component>=0.13.0",
|
||||
"pytest>=9.0.3",
|
||||
"pytest-asyncio>=1.3.0",
|
||||
"pytest-homeassistant-custom-component>=0.13.323",
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue