For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /developers/blog/2022-07-29-device-tracker_source-type-deprecation.md.

2022.9 的 Device tracker 弃用

对于 Home Assistant Core 2022.9,我们弃用了 device_trackerSOURCE_TYPE_* 常量。 请改用新的 SourceType enum。

已弃用的常量:

  • SOURCE_TYPE_GPS
  • SOURCE_TYPE_ROUTER
  • SOURCE_TYPE_BLUETOOTH
  • SOURCE_TYPE_BLUETOOTH_LE