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 %}