From 4e0c2b47b1cac9450c7f23485d23e99f9720a8c3 Mon Sep 17 00:00:00 2001 From: Julian Pawlowski <75446+jpawlowski@users.noreply.github.com> Date: Sun, 21 Dec 2025 10:44:29 +0000 Subject: [PATCH] fix: conditionally enable tooltips for first series based on highlight_best_price Fixes #63 --- custom_components/tibber_prices/services/get_apexcharts_yaml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/tibber_prices/services/get_apexcharts_yaml.py b/custom_components/tibber_prices/services/get_apexcharts_yaml.py index 878f3a5..864ae58 100644 --- a/custom_components/tibber_prices/services/get_apexcharts_yaml.py +++ b/custom_components/tibber_prices/services/get_apexcharts_yaml.py @@ -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, },