Skip to content

fix: clean up build warnings and sync Colorado Tab5 package - #314

Merged
eigger merged 2 commits into
masterfrom
fix/compiler-warnings-colorado-sync
Aug 18, 2026
Merged

fix: clean up build warnings and sync Colorado Tab5 package#314
eigger merged 2 commits into
masterfrom
fix/compiler-warnings-colorado-sync

Conversation

@eigger

@eigger eigger commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fixes every ESPHome compiler warning surfaced by the two provided install logs (esp-colorado-tab5-install.txt, esp-kocom-install.txt), plus a handful more surfaced by compiling every component's test config against ESPHome 2026.7.4.
  • ble_elm327, divoom: deprecated ESPBTUUID::to_string()to_str(), %u/uint32_t format mismatch, empty-if-body warnings, missing default: in a GATT event switch (with a case properly braced instead of enumerating ~40 irrelevant enum values).
  • uartex: missing LOCK_STATE_OPEN/OPENING and MediaPlayerCommand switch cases, an empty-if-body warning, and a real bug — a duplicated self-assignment (pref_ = pref_ = ...) in uartex_select.
  • packages/display/colorado/colorado-tab5.yaml: synced to the maintainer's current device config (GPS, battery SOC sensor, refined alert thresholds, torque card removed), merge_warnings: false for the intentional YAML-anchor overrides, widened an undersized snprintf buffer, and grayscalebinary for two icons. Also restores safe_mode:, which esphome config requires for the existing Restart Safemode switch — a validation error that a bare esphome compile doesn't surface (it stopped at the C++ warnings first).

Test plan

  • esphome compile for ble_elm327, divoom, uartex (esp32-idf) — zero warnings in our code, Successfully compiled program.
  • esphome compile for axp192, bbq10_keyboard, bmi270, bmm150, ip5306, jaalee_jht, lilygo_t_keyboard, m5unit_scales, sip_client, tca8418_keyboard, tcp_server, ws_bridge — all clean (only pre-existing ESPHome-core warnings we don't control, e.g. crash_handler.cpp).
  • esphome config for the Colorado Tab5 package against a synthetic device config with the real github://eigger/espcomponents external components — Configuration is valid!

🤖 Generated with Claude Code

eigger and others added 2 commits August 18, 2026 22:03
- ble_elm327, divoom: replace deprecated ESPBTUUID::to_string() with
  to_str() (removed in ESPHome 2026.8.0); fix %u format vs uint32_t
  argument mismatch; add braces around log-macro-only if bodies that
  GCC flags as empty when the macro compiles away
- divoom: add a default case to the GATT event switch instead of
  enumerating dozens of irrelevant esp_gattc_cb_event_t values, and
  scope the WRITE_CHAR_EVT case body so the added case doesn't jump
  over a variable initialization
- uartex: add missing LOCK_STATE_OPEN/OPENING and several
  MediaPlayerCommand switch cases; fix a duplicated self-assignment
  (pref_ = pref_ = ...) in uartex_select; brace an empty if body

Verified by compiling every affected component's test config against
ESPHome 2026.7.4 (esp32-idf) with zero warnings remaining in our code.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Bring the shared package in line with the maintainer's current device
config: GPS module (position, speed, altitude, satellites) feeding a
ws_bridge device tracker and GNSS BMP280 temperature/pressure, a
battery state-of-charge sensor/gauge, refined alert thresholds, and
removal of the torque gauge card. Also declares safe_mode (the
existing Restart Safemode switch required it, which esphome config
now catches) and drops the OTA packages include, since the generated
ota_server/devices/esp-colorado-tab5.yaml file is local to the
maintainer's Home Assistant install and isn't part of this repo.

Also fixes the ESPHome build warnings from this package:
- merge_warnings: false for the intentional YAML-anchor overrides
  (gauge_bar's max_value, gauge_value's x, info_value's text_color)
- widen the gear-position snprintf buffer (was undersized for the
  full int range)
- car-lifted-pickup/car-back icons switched from grayscale to binary,
  matching how every other recolored icon in this package is typed

Verified with `esphome config` against ESPHome 2026.7.4.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@eigger
eigger merged commit f5d7f17 into master Aug 18, 2026
15 checks passed
@eigger
eigger deleted the fix/compiler-warnings-colorado-sync branch August 20, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant