Skip to content

chore: sort signals and icons alphabetically#265

Closed
ardevd wants to merge 1 commit into
mainfrom
alphabetic-signals-and-icons
Closed

chore: sort signals and icons alphabetically#265
ardevd wants to merge 1 commit into
mainfrom
alphabetic-signals-and-icons

Conversation

@ardevd

@ardevd ardevd commented Feb 26, 2026

Copy link
Copy Markdown
Owner

No description provided.

@ardevd ardevd self-assigned this Feb 26, 2026
Copilot AI review requested due to automatic review settings February 26, 2026 22:04
@ardevd ardevd added the enhancement New feature or request label Feb 26, 2026
@redbird-sonarqube

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request reorganizes the signal definitions and icon mappings in the DIMO Home Assistant integration by sorting them alphabetically. The changes affect two main files: the icons.json configuration file and the const.py constants file.

Changes:

  • Sorted sensor and binary_sensor icon definitions alphabetically in icons.json
  • Sorted the SIGNALS dictionary entries alphabetically in const.py
  • No functional changes to signal definitions or icon assignments

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
custom_components/dimo/icons.json Alphabetically sorted sensor and binary_sensor icon definitions for better maintainability
custom_components/dimo/const.py Alphabetically sorted SIGNALS dictionary entries (sensors, binary_sensors, and device_trackers) for better code organization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +16 to 27
"currentlocationaltitude": {
"default": "mdi:elevation-rise"
},
"obdfuelrate": {
"default": "mdi:fuel"
"currentlocationheading": {
"default": "mdi:compass-rose"
},
"powertraincombustionenginespeed": {
"default": "mdi:gauge"
"dimoaftermarkethdop": {
"default": "mdi:satellite-variant"
},
"powertraincombustionenginetps": {
"default": "mdi:gauge-low"
"dimoaftermarketnsat": {
"default": "mdi:satellite-variant"
},

Copilot AI Feb 26, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several sensor signals defined in const.py are missing corresponding icon definitions. The following signals should be added to maintain consistency between const.py and icons.json:

  • exteriorairtemperature
  • obdbarometricpressure
  • obddistancewithmil
  • obdmap
  • powertraincombustionengineect
  • powertraintractionbatterycurrentpower
  • powertraintractionbatterycurrentvoltage
  • powertraintractionbatterygrosscapacity
  • powertraintractionbatteryrange
  • powertraintractionbatterystateofchargecurrent
  • powertraintractionbatterytemperature
  • powertraintractionbatterytemperatureaverage
  • powertraintransmissiontemperature
  • speed

These entries should be added in alphabetical order with appropriate MDI icons.

Copilot uses AI. Check for mistakes.
"default": "mdi:car-key"
},
"obdispluggedin": {
"default": "mdi:mini-sd"

Copilot AI Feb 26, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Binary sensor signal "powertraintractionbatterychargingischarging" defined in const.py is missing from the binary_sensor section. This should be added in alphabetical order with an appropriate MDI icon (such as "mdi:battery-charging").

Suggested change
"default": "mdi:mini-sd"
"default": "mdi:mini-sd"
},
"powertraintractionbatterychargingischarging": {
"default": "mdi:battery-charging"

Copilot uses AI. Check for mistakes.
@ardevd ardevd closed this Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants