mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-05-28 18:43:40 +00:00
Removed periods_found_total and replaced with period_count_today / period_count_tomorrow. The old attribute counted all periods including yesterday (coordinator scope), causing a discrepancy vs. the displayed list (sensor scope, today+tomorrow only). Renamed periods_total → period_count_total for naming consistency with the new per-day attributes. Recalculate period_position / period_count_total / periods_remaining after the today+tomorrow filter so all three navigation attributes reflect the filtered scope. period_count_tomorrow is always present (0 when no tomorrow data or no periods found), enabling automations without default(0) guards. Removed internal periods_found key from relaxation metadata — it was only consumed by add_calculation_summary_attributes which is now removed. BREAKING CHANGE: periods_found_total removed (replace with period_count_today + period_count_tomorrow). periods_total renamed to period_count_total. Impact: Period navigation attributes (position/total/remaining) now correctly reflect today+tomorrow scope. Per-day counts allow automations to distinguish "2 periods today, 0 tomorrow" from "1+1". |
||
|---|---|---|
| .. | ||
| docs | ||
| src | ||
| static | ||
| versioned_docs | ||
| versioned_sidebars | ||
| .gitignore | ||
| docusaurus.config.ts | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| sidebars.ts | ||
| tsconfig.json | ||
| versions.json | ||
Website
This website is built using Docusaurus, a modern static website generator.
Installation
yarn
Local Development
yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Build
yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Deployment
Using SSH:
USE_SSH=true yarn deploy
Not using SSH:
GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.