{
 "flight": {
  "id": 46222,
  "agent": "github-copilot",
  "state": "merged",
  "title": "Fix duplicate SensorEntities registration in AddHomeAssistantGenerated",
  "number": 1316,
  "source": "aidev",
  "commits": 3,
  "debrief": "GitHub Copilot opened a fix in net-daemon/netdaemon for duplicate SensorEntities registration in AddHomeAssistantGenerated, where numeric and non-numeric entities shared a domain. The change touched two files, with 81 additions and six deletions, across three commits. The PR received one review comment and no change requests, and merged clean 20.2 hours after opening.",
  "outcome": "merged_clean",
  "signals": [
   "aidev:Copilot"
  ],
  "index_ok": true,
  "additions": 81,
  "closed_at": "2025-07-25T20:21:59+00:00",
  "deletions": 6,
  "merged_at": "2025-07-25T20:21:59+00:00",
  "opened_at": "2025-07-25T00:09:43+00:00",
  "task_type": "fix",
  "body_chars": 1890,
  "confidence": "dataset",
  "updated_at": "2026-11-03T21:23:35.272548+00:00",
  "enriched_at": null,
  "body_excerpt": "This PR fixes an issue where multiple `SensorEntities` (and potentially other entity types) were being registered in the dependency injection container when the same domain had both numeric and non-numeric entities.\n\n## Problem\n\nThe code generation creates separate `EntityDomainMetadata` records for",
  "review_count": 6,
  "files_changed": 2,
  "hours_to_merge": 20.2,
  "metrics_source": "aidev_commit_sum",
  "change_requests": 0,
  "og_generated_at": "2026-11-03T21:23:35.272548+00:00",
  "reviewer_excerpt": "Please find the code in HassModel.CodeGen where these lines are generated. It probably needs a Distinct() somewhere in a linq query. Also add a unit",
  "review_comment_count": 1,
  "reviewer_excerpt_url": "https://github.com/net-daemon/netdaemon/pull/1316#issuecomment-3115386475"
 },
 "repo": {
  "name": "netdaemon",
  "owner": "net-daemon",
  "stars": 313,
  "license": "MIT",
  "full_name": "net-daemon/netdaemon",
  "primary_language": "C#"
 },
 "author": {
  "login": "Copilot",
  "name": null,
  "github_profile": "https://github.com/Copilot",
  "page": null
 },
 "claim": null,
 "events": [
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "Rick van Dam"
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": "2025-07-25T00:42:04+00:00",
   "url": null,
   "kind": "labeled",
   "actor_login": "FrankBakkerNl"
  }
 ],
 "related": [
  {
   "agent": "github-copilot",
   "state": "open",
   "title": "Add NetDaemon integration validation with clear error messages for RegisterServiceCallBack()",
   "number": 1317,
   "outcome": "stale",
   "index_ok": false,
   "additions": 103,
   "deletions": 7,
   "merged_at": null,
   "opened_at": "2025-07-25T00:35:39+00:00",
   "task_type": "fix",
   "files_changed": 3,
   "hours_to_merge": null
  }
 ],
 "pr_url": "https://github.com/net-daemon/netdaemon/pull/1316",
 "page": "https://agentriders.com/logs/net-daemon/netdaemon/1316/"
}