Skip to content

Migrate deprecated check_uart_settings to final_validate_device_schema - #249

Merged
syssi merged 1 commit into
KinDR007:mainfrom
gongloo:fix-deprecated-check-uart-settings
Oct 2, 2026
Merged

syssi merged 1 commit into
KinDR007:mainfrom
gongloo:fix-deprecated-check-uart-settings

Conversation

@gongloo

@gongloo gongloo commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Summary

ESPHome 2026.9.0 deprecated runtime check_uart_settings() in C++ in favor of compile-time schema validation via Python uart.final_validate_device_schema().

This PR:

  1. Replaces the runtime check_uart_settings(19200) in victron.cpp
  2. Adds FINAL_VALIDATE_SCHEMA = uart.final_validate_device_schema("victron", baud_rate=19200, require_rx=True) in __init__.py (with fallback for older ESPHome versions)

@syssi
syssi merged commit 922cd6a into KinDR007:main Oct 2, 2026
16 checks passed
@gongloo
gongloo deleted the fix-deprecated-check-uart-settings branch October 2, 2026 08:25
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.

2 participants