Commit ef0d39c
fix: add translations for the eight new MOD sensors
tests_ha enforces that every SENSOR_DEFINITIONS entry has an entity.sensor name
in strings.json and translations/en.json; without one the sensor is unnamed in
the UI. The eight added for #372/#373 had none.
Caught by CI rather than locally: tests_ha needs Home Assistant and only runs on
Linux, so 'pytest tests/' passing says nothing about it. Verified this time by
replicating the assertions against an AST parse of sensor.py.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent fc08966 commit ef0d39c
2 files changed
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| |||
383 | 386 | | |
384 | 387 | | |
385 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
386 | 392 | | |
387 | 393 | | |
388 | 394 | | |
| |||
395 | 401 | | |
396 | 402 | | |
397 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
398 | 410 | | |
399 | 411 | | |
400 | 412 | | |
| |||
521 | 533 | | |
522 | 534 | | |
523 | 535 | | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
524 | 539 | | |
525 | 540 | | |
526 | 541 | | |
| |||
602 | 617 | | |
603 | 618 | | |
604 | 619 | | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
605 | 626 | | |
606 | 627 | | |
607 | 628 | | |
| |||
614 | 635 | | |
615 | 636 | | |
616 | 637 | | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
617 | 641 | | |
618 | 642 | | |
619 | 643 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| |||
383 | 386 | | |
384 | 387 | | |
385 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
386 | 392 | | |
387 | 393 | | |
388 | 394 | | |
| |||
395 | 401 | | |
396 | 402 | | |
397 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
398 | 410 | | |
399 | 411 | | |
400 | 412 | | |
| |||
521 | 533 | | |
522 | 534 | | |
523 | 535 | | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
524 | 539 | | |
525 | 540 | | |
526 | 541 | | |
| |||
602 | 617 | | |
603 | 618 | | |
604 | 619 | | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
605 | 626 | | |
606 | 627 | | |
607 | 628 | | |
| |||
614 | 635 | | |
615 | 636 | | |
616 | 637 | | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
617 | 641 | | |
618 | 642 | | |
619 | 643 | | |
| |||
0 commit comments