Improve annotation styling (#118032)

This commit is contained in:
Marc Mueller 2024-05-24 15:05:53 +02:00 committed by GitHub
parent 2308ff2cbf
commit dd22ee3dac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 41 additions and 35 deletions

View file

@ -257,7 +257,7 @@ class SensorTemplate(TemplateEntity, SensorEntity):
self._attr_device_class = config.get(CONF_DEVICE_CLASS)
self._attr_state_class = config.get(CONF_STATE_CLASS)
self._template: template.Template = config[CONF_STATE]
self._attr_last_reset_template: None | template.Template = config.get(
self._attr_last_reset_template: template.Template | None = config.get(
ATTR_LAST_RESET
)
if (object_id := config.get(CONF_OBJECT_ID)) is not None: