towerops/priv
Graham McIntire a23296ea34
fix: add missing sensor units to existing sensors
Sets sensor_unit for all sensors that are missing it, fixing sensors
created before the discovery code was updated to set units properly.

Updates:
- Temperature sensors: set to '°C'
- Voltage sensors: set to 'V'
- Current sensors: set to 'mA'
- Power sensors: set to 'W'
- dBm sensors: set to 'dBm'

This ensures the device detail page displays units correctly for all
sensor types (e.g., "27 °C" instead of "27" for temperature).

The discovery code already sets these units for new sensors, so this
migration only affects existing data.

Related to:
- lib/towerops/snmp/profiles/vendors/routeros.ex:690 (°C)
- lib/towerops/snmp/profiles/vendors/routeros.ex:709 (V)
- lib/towerops/snmp/profiles/base.ex:1473-1480 (sensor_type_to_unit)

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-25 12:38:23 -06:00
..
gettext init 2025-12-21 11:10:43 -06:00
mibs Include MIB files in Docker image instead of using PVC 2026-01-19 14:01:03 -06:00
profiles import yamls 2026-01-21 14:30:04 -06:00
proto Add ICMP monitoring support to Phoenix agent channel 2026-01-19 13:46:20 -06:00
repo fix: add missing sensor units to existing sensors 2026-01-25 12:38:23 -06:00
static sanitize snmp data and fix some cpu things 2026-01-22 16:53:01 -06:00