mirror of
https://github.com/home-assistant/core.git
synced 2026-09-25 17:04:04 -04:00
Remove redundant translation_placeholders plumbing in Vistapool (#180051)
Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Erwin Douna <e.douna@gmail.com>
This commit is contained in:
co-authored by
Claude
Erwin Douna
parent
247fa20afa
commit
845650cb6f
@@ -29,7 +29,6 @@ class VistapoolSelectEntityDescription(SelectEntityDescription):
|
||||
|
||||
value_path: str
|
||||
exists_path: str | tuple[str, ...] | None = None
|
||||
translation_placeholders: dict[str, str] | None = None
|
||||
|
||||
|
||||
SELECT_DESCRIPTIONS: tuple[VistapoolSelectEntityDescription, ...] = (
|
||||
@@ -125,8 +124,6 @@ class VistapoolSelect(VistapoolEntity, SelectEntity):
|
||||
super().__init__(coordinator)
|
||||
self.entity_description = description
|
||||
self._attr_unique_id = self.build_unique_id(description.key)
|
||||
if description.translation_placeholders is not None:
|
||||
self._attr_translation_placeholders = description.translation_placeholders
|
||||
|
||||
@property
|
||||
@override
|
||||
|
||||
@@ -29,7 +29,6 @@ class VistapoolTimeEntityDescription(TimeEntityDescription):
|
||||
"""Describes a Vistapool time entity."""
|
||||
|
||||
value_path: str
|
||||
translation_placeholders: dict[str, str]
|
||||
|
||||
|
||||
TIME_DESCRIPTIONS: tuple[VistapoolTimeEntityDescription, ...] = tuple(
|
||||
@@ -90,7 +89,6 @@ class VistapoolTime(VistapoolEntity, TimeEntity):
|
||||
super().__init__(coordinator)
|
||||
self.entity_description = description
|
||||
self._attr_unique_id = self.build_unique_id(description.key)
|
||||
self._attr_translation_placeholders = description.translation_placeholders
|
||||
|
||||
@property
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user