Closed notabene00 closed 3 years ago
if defined
states: { 'home': 'Дома', 'not_home': 'Не дома' },
and
state: function(i, e) { return 'home'; }
then state field will contain home, not Дома
home
Дома
This is by design. While states maps actual state from the entity, state overrides everything and sets it to whatever you return.
states
state
So I should define my own dict or smth inside of function Got it
if defined
and
then state field will contain
home
, notДома