Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(linux)!: handle hwmon chips with the same name
BREAKING CHANGE: When more than one chip exposed by the hwmon userspace API have the same name, the agent was not treating them as unique. This commit fixes the code to ensure every chip gets its own sensors. This unfortunately required changing the naming format of all chips, so will result in new sensors being recorded in Home Assistant. The new naming convention will have a number appended to the chip name. So for example, where most Intel CPUs had a hwmon chip called "Coretemp", producing sensor names like "Coretemp Core 0 Temp", these will now be called "Coretemp 0 Core 0 Temp" (i.e., a number after "Coretemp"). Similar naming patterns are used for other chips. Users may want to remove the old sensors manually, under Developer Tools->Statistics in Home Assistant, for example. Or they can wait until they age out of the Home Assistant long-term statistics database automatically.
- Loading branch information