Skip to content

Commit

Permalink
correct individual devices ui editor
Browse files Browse the repository at this point in the history
  • Loading branch information
flixlix committed Apr 19, 2023
1 parent 437e039 commit eaeb634
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default [
{
dir: "dist",
format: "es",
inlineDynamicImports: true,
},
],
plugins: [
Expand Down
15 changes: 2 additions & 13 deletions src/ui-editor/schema/individual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,7 @@ const mainSchema = {
{
name: "color_value",
label: "Color Value",
selector: {
select: {
options: [
{ value: "true", label: "True" },
{ value: "false", label: "False" },
{ value: "solar", label: "Solar" },
{ value: "grid", label: "Grid" },
{ value: "battery", label: "Battery" },
],
custom_value: true,
},
},
selector: { boolean: {} },
},
{
name: "color_icon",
Expand All @@ -29,7 +18,7 @@ const mainSchema = {
{
name: "unit_of_measurement",
label: "Unit of Measurement",
selector: { string: {} },
selector: { text: {} },
},
{
name: "display_zero",
Expand Down

0 comments on commit eaeb634

Please sign in to comment.