v5.0.2
⚠️ ⚠️ ⚠️ [BREAKING CHANGE] READ BEFORE UPDATE ⚠️ ⚠️ ⚠️
This version is a major update of the library and it brings several changes and improvements:
base_order
option inexceptions
has been renamed toextend_from_base
. If it istrue
it will mergeorder
from base with theorder
from theexception
, for the rest of properties it will take the propery from the base if it is not available in theexception
.- Now it is possible to set more options in
exceptions
apart fromorder
:title
sidebar_editable
styles
If
extend_from_base
istrue
and any of these options are not set, it will try to get them from the base config. order
inexceptions
is not mandatory anymore.sidebar_editable
apart from aboolean
now accepts a string with aJavaScript
or aJinja
template. The template should returntrue
orfalse
, otherwise it will be ignored.- When
sidebar_editable
isfalse
it will also avoid showing the glow circle around the mouse when one press and hold over the title - Now you can use some client side variables inside
Jinja
templates (they were available inJavaScript
templates but not inJinja
ones):user_name
: String with the logged user's nameuser_is_admin
: Bolean value than indicates if the logged user is admin or notuser_is_owner
: Bolean value than indicates if the logged user is the owner or notuser_agent
: User agent of the browser in which Home Assistant is being executed
📦 Other
- Manage the blocking of the sidebar title events with the sidebar CSSs
- PR: #142 by @elchininet