mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 13:30:43 +00:00
Migrate Azure DevOps to has entity name (#112420)
This commit is contained in:
committed by
GitHub
parent
ff21a2fcca
commit
32bb33c55e
@@ -19,8 +19,7 @@ from .const import CONF_ORG, DOMAIN
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class AzureDevOpsSensorEntityDescription(
|
||||
AzureDevOpsEntityDescription,
|
||||
SensorEntityDescription,
|
||||
AzureDevOpsEntityDescription, SensorEntityDescription
|
||||
):
|
||||
"""Class describing Azure DevOps sensor entities."""
|
||||
|
||||
@@ -40,7 +39,8 @@ async def async_setup_entry(
|
||||
coordinator,
|
||||
AzureDevOpsSensorEntityDescription(
|
||||
key=f"{build.project.id}_{build.definition.id}_latest_build",
|
||||
name=f"{build.project.name} {build.definition.name} Latest Build",
|
||||
translation_key="latest_build",
|
||||
translation_placeholders={"definition_name": build.definition.name},
|
||||
icon="mdi:pipe",
|
||||
attrs=lambda build: {
|
||||
"definition_id": build.definition.id,
|
||||
|
||||
Reference in New Issue
Block a user