Marc Mueller
a0314cddd4
Fix invalid tuple annotations ( #116035 )
2024-04-23 16:02:16 +02:00
Jan Bouwhuis
9ca253213c
Correct HomeAssistantError __str__ implementation and test ( #113991 )
...
Correct HomeAssistant sub class implementation and test
2024-03-22 13:39:36 +01:00
Jan Bouwhuis
4da701a8e9
Add guard to HomeAssistantError `__str__` method to prevent a recursive loop ( #113913 )
...
* Add guard to HomeAssistantError `__str__` method to prevent a recursive loop
* Use repr of class instance instead
* Apply suggestion to explain __str__ method is missing
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-21 23:12:25 +01:00
Jan Bouwhuis
554aefed42
Generate HomeAssistantError message from English translations ( #113305 )
...
* Fetch exception message from translation cache
* Improve tests
* Return translation key without path, cleanup
* Fetch translations when string variant is requested
* Move import
* revert changes ConfigValidationError
* mypy
* Remove _str__ method instead
* Type _message for mqtt template exception classes
* Revert changes made to test_config.py
* Undo changes TemplateError
* Follow up comments and test coverage
2024-03-16 22:56:48 +01:00
Marc Mueller
19ab3d6daf
Add empty line after module docstring [helpers + other] ( #112707 )
2024-03-08 10:36:11 -05:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
f91e250e90
Fix TemplateError definition ( #82570 )
2022-11-23 20:30:32 +01:00
Franck Nijhof
c5383219f1
Remove stale debug statements from tests ( #51059 )
2021-05-25 11:52:20 +02:00
Anders Melchiorsen
d33a1a5ff8
Refine printing of ConditionError ( #46838 )
...
* Refine printing of ConditionError
* Improve coverage
* name -> type
2021-02-21 14:54:36 +01:00