thomasloven / lovelace-auto-entities

🔹Automatically populate the entities-list of lovelace cards
MIT License
1.25k stars 113 forks source link

Sorting with negative amounts #236

Closed iwanvandaele closed 2 years ago

iwanvandaele commented 2 years ago

The sorting on negative amounts is not working:

image

sort: method: state reverse: true numeric: true

Regards, Iwan Vandaele

ildar170975 commented 2 years ago

Do confirm this:

  - type: custom:auto-entities
    card:
      type: entities
    show_empty: false
    filter:
      include:
        - entity_id: input_number.test_negative*
    sort:
      method: state
      reverse: false
      numeric: true
  test_negative_1: &ref_test_nagative_values
    min: -10000
    max: 10000
    step: 0.1
    mode: box
  test_negative_2: *ref_test_nagative_values
  test_negative_3: *ref_test_nagative_values
  test_negative_4: *ref_test_nagative_values
  test_negative_5: *ref_test_nagative_values
  test_negative_6: *ref_test_nagative_values
  test_negative_7: *ref_test_nagative_values
  test_negative_8: *ref_test_nagative_values
  test_negative_9: *ref_test_nagative_values
  test_negative_10: *ref_test_nagative_values
  test_negative_11: *ref_test_nagative_values
  test_negative_12: *ref_test_nagative_values
  test_negative_13: *ref_test_nagative_values

изображение