From acdc438f0e55d0c284728e14fd1bab568526c4f6 Mon Sep 17 00:00:00 2001 From: Kevin Eifinger Date: Sat, 5 Oct 2019 21:25:28 +0200 Subject: [PATCH] v2.1.1 - fix ATTR_MODE missing --- custom_components/here_travel_time/sensor.py | 2 +- info.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_components/here_travel_time/sensor.py b/custom_components/here_travel_time/sensor.py index b692708..a660818 100644 --- a/custom_components/here_travel_time/sensor.py +++ b/custom_components/here_travel_time/sensor.py @@ -12,7 +12,6 @@ ATTR_ATTRIBUTION, ATTR_LATITUDE, ATTR_LONGITUDE, - ATTR_MODE, CONF_MODE, CONF_NAME, CONF_UNIT_SYSTEM, @@ -78,6 +77,7 @@ ATTR_ROUTE = "route" ATTR_ORIGIN = "origin" ATTR_DESTINATION = "destination" +ATTR_MODE = "mode" ATTR_UNIT_SYSTEM = CONF_UNIT_SYSTEM ATTR_TRAFFIC_MODE = CONF_TRAFFIC_MODE diff --git a/info.md b/info.md index 6b7008a..5fab375 100644 --- a/info.md +++ b/info.md @@ -33,6 +33,9 @@ ## Bugfixes +{% if version_installed.replace("v", "").replace(".","") | int < 211 %} +- Fix error ATTR_MODE not found +{% endif %} {% if version_installed.replace("v", "").replace(".","") | int < 143 %} - Fix for `mode: publicTransportTimeTable` returning `No timetable route found` {% endif %}