Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/aiovantage/_object_interfaces/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,11 @@ async def invoke(

# Break the response into tokens
return_line = response[-1]
_command, _vid, result, _method, *args = Converter.tokenize(return_line)
_command, _vid, result, *args = Converter.tokenize(return_line)

# Parse the response
return self._parse_object_response(method, result, *args, as_type=as_type)
# Skip the echoed method name if present; legacy firmware (2.x)
# omits it, while modern firmware includes it as the first arg.
return self._parse_object_response(method, result, *args[1:], as_type=as_type)

def update_properties(self, properties: dict[str, Any]) -> list[str]:
"""Update object properties.
Expand Down