G Johansson
173b70c850
Fix weather template forecast attributes ( #100748 )
2023-09-23 13:30:11 +02:00
Erik Montnemery
d1afcd773f
Revert "Cache entity properties that are never expected to change in the base class" ( #100422 )
...
Revert "Cache entity properties that are never expected to change in the base class (#95315 )"
This reverts commit 042776ebb8
.
2023-09-15 11:25:24 +02:00
J. Nick Koston
042776ebb8
Cache entity properties that are never expected to change in the base class ( #95315 )
2023-09-14 17:48:48 -05:00
Erik Montnemery
63c538b024
Add config flow for template sensor ( #98970 )
...
* Add config flow for template sensor
* Tweak error reporting
* Improve validation
* Fix test
* Rename translation strings
* Improve validation
* Fix sensor async_setup_entry
* Avoid duplicating sensor device class translations
* Avoid duplicating sensor device class translations
* Add config flow tests
* Include all units from DEVICE_CLASS_UNITS in unit_of_measurement select
* Address review comments
2023-08-30 16:22:52 +02:00
G Johansson
207e3f90a6
Modernize template weather ( #98064 )
...
* Modernize template weather
* mods
* adds templates
* Fixes
* review comments
* more comments
* Fix validator
* Tests
* Mods
* Fix ruff
2023-08-21 15:48:14 +02:00
G Johansson
30d22fe49b
Add new attributes into Template Weather ( #95100 )
2023-06-27 11:19:51 +02:00
epenet
dd7a06b9dc
Use unit_conversion in components ( #78991 )
2022-09-23 17:33:32 +02:00
G Johansson
4b5c0be896
Native to Weather Template ( #74060 )
...
* Native to Weather template
* Add validation
2022-06-28 13:42:58 +02:00
Erik Montnemery
5987266e56
Refactor template entity to allow reuse ( #72753 )
...
* Refactor template entity to allow reuse
* Fix schema and default name
* Add tests
* Update requirements
* Improve test
* Tweak TemplateSensor initializer
* Drop attributes and availability from TemplateEntity
* Use rest sensor for proof of concept
* Revert changes in SNMP sensor
* Don't set _attr_should_poll in mixin class
* Update requirements
2022-06-08 15:55:49 +02:00
Erik Montnemery
e9a9b119c4
Teach TemplateEntity unique_id ( #64837 )
2022-01-24 23:16:31 +01:00
Erik Montnemery
321f54494e
Teach TemplateEntity entity name ( #62175 )
...
* Teach TemplateEntity entity name
* Remove default name from number and select config schemas
* Re-add default name to number and select config schemas
* Set name to None if name template fails to render
* Update template button
2022-01-24 15:44:05 +01:00
epenet
1c30992b0e
Add setup type hints to all template platforms ( #63295 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 16:23:12 +01:00
Erik Montnemery
682f29f131
Minor refactor of template weather ( #61861 )
2021-12-16 16:39:44 +01:00
Christian Soltenborn
955804bf58
Add template support for remaining attributes of weather entity ( #47736 )
...
* added template support for remaining attributes of weather entity
* wind bearing is now angle (number)
2021-03-27 18:53:35 +00:00
Paulus Schoutsen
3dec394cad
Migrate template to register reload service on async_setup ( #48273 )
2021-03-23 20:35:15 -07:00
hung2kgithub
15da1c4785
Add missing clear-night weather condition ( #47666 )
2021-03-10 10:48:06 -10:00
Diogo Gomes
0e44d61225
Add weather platform to template domain ( #45031 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-02-21 18:08:00 -10:00