Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle or silence RangeError? #324

Open
Floppe opened this issue Dec 20, 2023 · 1 comment
Open

Handle or silence RangeError? #324

Floppe opened this issue Dec 20, 2023 · 1 comment

Comments

@Floppe
Copy link

Floppe commented Dec 20, 2023

When an entity has UOM = c/kWh, then perhaps do not try to treat it as a currency so the debug console is not filled with errors?

RangeError: Invalid currency code : c/kWh at new NumberFormat (<anonymous>) at Mt (multiple-entity-row.js?hacstag=178921037450:1:19956) at multiple-entity-row.js?hacstag=178921037450:1:33612 at multiple-entity-row.js?hacstag=178921037450:1:34897 at c.value (multiple-entity-row.js?hacstag=178921037450:1:34932) at c.value (multiple-entity-row.js?hacstag=178921037450:1:31297) at multiple-entity-row.js?hacstag=178921037450:1:29878 at Array.map (<anonymous>) at c.value (multiple-entity-row.js?hacstag=178921037450:1:29852) at c.update (multiple-entity-row.js?hacstag=178921037450:1:14837)

@ildar170975
Copy link

Consider posting your MINIMAL code causing the issue.
Cannot reproduce it:

image

type: entities
entities:
  - type: custom:multiple-entity-row
    entity: zone.home
    unit: c/kWh
    entities:
      - entity: zone.home
        unit: c/kWh
  - type: custom:multiple-entity-row
    entity: sensor.test_unit
    entities:
      - entity: sensor.test_unit

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants