1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-11 15:52:20 +01:00

address bot review comments

This commit is contained in:
J. Nick Koston
2025-07-11 17:24:55 -10:00
parent 88049f9801
commit 427560f814
2 changed files with 13 additions and 5 deletions

View File

@@ -540,7 +540,10 @@ class MessageType(TypeInfo):
@property
def decode_length(self) -> str:
# For non-template decoding, we need to handle this differently
# Override to return None for message types because we can't use template-based
# decoding when the specific message type isn't known at compile time.
# Instead, we use the non-template decode_to_message() method which allows
# runtime polymorphism through virtual function calls.
return None
@property