Refactor SQL with ManualTriggerEntity (#95116)

* First go

* Finalize sensor

* Add tests

* Remove not need _attr_name

* device_class

* _process_manual_data allow Any as value
This commit is contained in:
G Johansson 2023-07-20 11:35:08 +02:00 committed by GitHub
parent 3fbdf4a184
commit 4e2b00a443
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 140 additions and 26 deletions

View file

@ -624,7 +624,7 @@ class ManualTriggerEntity(TriggerBaseEntity):
TriggerBaseEntity.__init__(self, hass, config)
@callback
def _process_manual_data(self, value: str | None = None) -> None:
def _process_manual_data(self, value: Any | None = None) -> None:
"""Process new data manually.
Implementing class should call this last in update method to render templates.