Commit 0f7b0c1
committed
test: enabled switch is a FormulaMetric — entity_id keeps the doubled prefix
test_sensor_complex[complex_naming] expected the de-duplicated entity_id for the
schedule 'enabled' switch, but that entity is a WritableFormulaMetric: formula
metrics are created without a display_id, so display_id == unique_id and the
device-type prefix is NOT de-duplicated (system_0_system_ess..., like the energy
FormulaMetric). The 'Day' select is a plain topic metric and stays de-duplicated.
Fixes the StopIteration (no entity matched the expected id).1 parent 07714d6 commit 0f7b0c1
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
384 | 388 | | |
385 | | - | |
| 389 | + | |
386 | 390 | | |
387 | 391 | | |
388 | 392 | | |
| |||
0 commit comments