Working mqtt setup
This commit is contained in:
parent
bcb35877c1
commit
a33474d893
9 changed files with 134 additions and 53 deletions
|
|
@ -11,7 +11,7 @@ export const renderIcon = (name: string, extraClass?: string) => {
|
|||
};
|
||||
|
||||
export const controlGetIcon = (control: Control, state: State): string => {
|
||||
return typeof control.icon !== "function" ? control.icon
|
||||
return !_.isFunction(control.icon) ? control.icon
|
||||
: control.icon(
|
||||
_.mapValues(state, (x) => x.internal || x.actual),
|
||||
_.mapValues(state, (x) => x.actual),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue