mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
fix: conditionally enable tooltips for first series based on highlight_best_price
Fixes #63
This commit is contained in:
parent
9eb5c01c94
commit
4e0c2b47b1
1 changed files with 1 additions and 1 deletions
|
|
@ -546,7 +546,7 @@ async def handle_apexcharts_yaml(call: ServiceCall) -> dict[str, Any]: # noqa:
|
|||
},
|
||||
"tooltip": {
|
||||
"enabled": True,
|
||||
"enabledOnSeries": [1, 2, 3, 4, 5], # Enable for all price level series
|
||||
"enabledOnSeries": [1, 2, 3, 4, 5] if highlight_best_price else [0, 1, 2, 3, 4],
|
||||
"marker": {
|
||||
"show": False,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue